rust/src/test/ui/issues/issue-44406.rs
2018-12-25 21:08:33 -07:00

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
}