rustc/tests/ui/parser/macro/macro-repeat.rs
2023-08-02 10:33:26 +02:00

13 lines
201 B
Rust

macro_rules! mac {
( $($v:tt)* ) => {
$v
//~^ ERROR still repeating at this depth
//~| ERROR still repeating at this depth
};
}
fn main() {
mac!(0);
mac!(1);
}