summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/derive-helper-legacy-spurious.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/derive-helper-legacy-spurious.rs')
-rw-r--r--src/test/ui/proc-macro/derive-helper-legacy-spurious.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/derive-helper-legacy-spurious.rs b/src/test/ui/proc-macro/derive-helper-legacy-spurious.rs
new file mode 100644
index 000000000..4a7e48eed
--- /dev/null
+++ b/src/test/ui/proc-macro/derive-helper-legacy-spurious.rs
@@ -0,0 +1,12 @@
+// aux-build:test-macros.rs
+
+#![dummy] //~ ERROR cannot find attribute `dummy` in this scope
+
+#[macro_use]
+extern crate test_macros;
+
+#[derive(Empty)] //~ ERROR cannot determine resolution for the attribute macro `derive`
+#[empty_helper] //~ ERROR cannot find attribute `empty_helper` in this scope
+struct Foo {}
+
+fn main() {}