summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-39467.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/issue-39467.rs')
-rw-r--r--tests/ui/macros/issue-39467.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/macros/issue-39467.rs b/tests/ui/macros/issue-39467.rs
new file mode 100644
index 000000000..397751e4e
--- /dev/null
+++ b/tests/ui/macros/issue-39467.rs
@@ -0,0 +1,11 @@
+// check-pass
+#![allow(dead_code)]
+macro_rules! expr { () => { () } }
+
+enum A {}
+
+impl A {
+ const A: () = expr!();
+}
+
+fn main() {}