summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/issue-38586.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/proc-macro/issue-38586.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/issue-38586.rs b/src/test/ui/proc-macro/issue-38586.rs
new file mode 100644
index 000000000..24e88ed93
--- /dev/null
+++ b/src/test/ui/proc-macro/issue-38586.rs
@@ -0,0 +1,9 @@
+// aux-build:issue-38586.rs
+
+#[macro_use]
+extern crate issue_38586;
+
+#[derive(A)] //~ ERROR `foo`
+struct A;
+
+fn main() {}