diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/macros-no-semicolon-items.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/parser/macros-no-semicolon-items.rs b/src/test/ui/parser/macros-no-semicolon-items.rs new file mode 100644 index 000000000..3afc275d6 --- /dev/null +++ b/src/test/ui/parser/macros-no-semicolon-items.rs @@ -0,0 +1,15 @@ +macro_rules! foo() //~ ERROR semicolon + //~| ERROR unexpected end of macro + +macro_rules! bar { + ($($tokens:tt)*) => {} +} + +bar!( //~ ERROR semicolon + blah + blah + blah +) + +fn main() { +} |