about summary refs log tree commit diff
path: root/src/test/ui/parser/macro/macro-repeat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/macro/macro-repeat.rs')
-rw-r--r--src/test/ui/parser/macro/macro-repeat.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/ui/parser/macro/macro-repeat.rs b/src/test/ui/parser/macro/macro-repeat.rs
index 580a1daacbf..3ffbea217e7 100644
--- a/src/test/ui/parser/macro/macro-repeat.rs
+++ b/src/test/ui/parser/macro/macro-repeat.rs
@@ -1,9 +1,12 @@
 macro_rules! mac {
-    ( $($v:tt)* ) => (
-        $v  //~ ERROR still repeating at this depth
-    )
+    ( $($v:tt)* ) => {
+        $v
+        //~^ ERROR still repeating at this depth
+        //~| ERROR still repeating at this depth
+    };
 }
 
 fn main() {
     mac!(0);
+    mac!(1);
 }