about summary refs log tree commit diff
path: root/tests/ui/macros/macro-match-nonterminal.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/macros/macro-match-nonterminal.rs')
-rw-r--r--tests/ui/macros/macro-match-nonterminal.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/macros/macro-match-nonterminal.rs b/tests/ui/macros/macro-match-nonterminal.rs
new file mode 100644
index 00000000000..5d9eb55fee0
--- /dev/null
+++ b/tests/ui/macros/macro-match-nonterminal.rs
@@ -0,0 +1,14 @@
+macro_rules! test {
+    ($a, $b) => {
+        //~^ ERROR missing fragment
+        //~| ERROR missing fragment
+        //~| ERROR missing fragment
+        //~| WARN this was previously accepted
+        //~| WARN this was previously accepted
+        ()
+    };
+}
+
+fn main() {
+    test!()
+}