rust/tests/ui/parser/macro/macro-repeat.rs

13 lines
201 B
Rust
Raw Normal View History

macro_rules! mac {
2020-03-17 06:12:57 -05:00
( $($v:tt)* ) => {
$v
//~^ ERROR still repeating at this depth
//~| ERROR still repeating at this depth
};
}
fn main() {
mac!(0);
2020-03-17 06:12:57 -05:00
mac!(1);
}