rust/src/test/ui/parser/issue-44406.rs

11 lines
192 B
Rust
Raw Normal View History

macro_rules! foo {
($rest: tt) => {
bar(baz: $rest)
}
}
fn main() {
2017-11-20 06:13:27 -06:00
foo!(true); //~ ERROR expected type, found keyword
//~^ ERROR expected identifier, found keyword
}