diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-32655.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-32655.rs b/src/test/ui/issues/issue-32655.rs new file mode 100644 index 000000000..f52e09231 --- /dev/null +++ b/src/test/ui/issues/issue-32655.rs @@ -0,0 +1,19 @@ +macro_rules! foo ( + () => ( + #[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope + struct T; + ); +); + +macro_rules! bar ( + ($e:item) => ($e) +); + +foo!(); + +bar!( + #[derive_Clone] //~ ERROR cannot find attribute `derive_Clone` in this scope + struct S; +); + +fn main() {} |