summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-32655.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-32655.rs')
-rw-r--r--tests/ui/issues/issue-32655.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-32655.rs b/tests/ui/issues/issue-32655.rs
new file mode 100644
index 000000000..f52e09231
--- /dev/null
+++ b/tests/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() {}