Closed SabrinaJewson closed 2 years ago
This simple example:
macro_rules! a { (#[x = $x:ty]) => {}; } paste::paste!(a!(#[x = foo::Bar]));
Fails with the error message:
error: expected identifier after `:` --> src/lib.rs:3:27 | 3 | paste::paste!(a!(#[x = foo::Bar])); | ^^
It seems like paste! is treating the attribute as a doc attribute even though it isn't.
paste!
Good catch. I've published a fix in 1.0.6.
This simple example:
Fails with the error message:
It seems like
paste!
is treating the attribute as a doc attribute even though it isn't.