diff options
Diffstat (limited to 'tests/ui/macros/macro-match-nonterminal.rs')
-rw-r--r-- | tests/ui/macros/macro-match-nonterminal.rs | 14 |
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 000000000..5d9eb55fe --- /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!() +} |