]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/macros-no-semicolon-items.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / macros-no-semicolon-items.rs
index a727cafcab02375d5ad7e5c46d302008a53af4b1..3afc275d61a2bc864fc954d558f5ba7e6106cb54 100644 (file)
@@ -1,4 +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() {
 }