rust/tests/ui/macros/paren-or-brace-expected.rs
2024-03-18 14:25:50 +02:00

10 lines
161 B
Rust

macro_rules! foo {
( $( $i:ident ),* ) => {
$[count($i)]
//~^ ERROR expected `(` or `{`, found `[`
//~| ERROR
};
}
fn main() {}