summaryrefslogtreecommitdiffstats
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.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/parser/macro/macro-repeat.rs b/src/test/ui/parser/macro/macro-repeat.rs
new file mode 100644
index 000000000..3ffbea217
--- /dev/null
+++ b/src/test/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);
+}