11 lines
192 B
Rust
11 lines
192 B
Rust
macro_rules! foo {
|
|
($rest: tt) => {
|
|
bar(baz: $rest)
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
foo!(true); //~ ERROR expected type, found keyword
|
|
//~^ ERROR expected identifier, found keyword
|
|
}
|