summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/macros-in-extern-derive.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/proc-macro/macros-in-extern-derive.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/macros-in-extern-derive.rs b/src/test/ui/proc-macro/macros-in-extern-derive.rs
new file mode 100644
index 000000000..c8b26b005
--- /dev/null
+++ b/src/test/ui/proc-macro/macros-in-extern-derive.rs
@@ -0,0 +1,6 @@
+extern "C" {
+ #[derive(Copy)] //~ ERROR `derive` may only be applied to `struct`s, `enum`s and `union`s
+ fn f();
+}
+
+fn main() {}