Closed tqwewe closed 1 year ago
It should work as long as you put the '
inside the [<
.
impl<$([<'_ $ty>],)* $($ty,)*> …
.
Ah okay, it also seems like I have to do [< '_ $ty >]
instead of just [< ' $ty >]
[< ' $ty >]
is not lexically valid Rust tokens so rustc wouldn't allow that in macro input.
If you don't want an underscore in the lifetime then you can use [<"'" $ty>]
.
Is it possible to create lifetimes with paste?
For example: