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