summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/issue-22463.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/macros/issue-22463.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/macros/issue-22463.rs b/src/test/ui/macros/issue-22463.rs
new file mode 100644
index 000000000..fdf5a2fca
--- /dev/null
+++ b/src/test/ui/macros/issue-22463.rs
@@ -0,0 +1,20 @@
+// run-pass
+macro_rules! items {
+ () => {
+ type A = ();
+ fn a() {}
+ }
+}
+
+trait Foo {
+ type A;
+ fn a();
+}
+
+impl Foo for () {
+ items!();
+}
+
+fn main() {
+
+}