diff options
Diffstat (limited to 'tests/ui/parser/macro/macro-repeat.rs')
-rw-r--r-- | tests/ui/parser/macro/macro-repeat.rs | 12 |
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 000000000..3ffbea217 --- /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); +} |