summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/derive-same-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/derive-same-struct.rs')
-rw-r--r--src/test/ui/proc-macro/derive-same-struct.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/derive-same-struct.rs b/src/test/ui/proc-macro/derive-same-struct.rs
new file mode 100644
index 000000000..528b0f22a
--- /dev/null
+++ b/src/test/ui/proc-macro/derive-same-struct.rs
@@ -0,0 +1,15 @@
+// run-pass
+
+#![allow(path_statements)]
+#![allow(dead_code)]
+// aux-build:derive-same-struct.rs
+
+#[macro_use]
+extern crate derive_same_struct;
+
+#[derive(AToB)]
+struct A;
+
+fn main() {
+ C;
+}