summary refs log tree commit diff
path: root/src/test/ui/parser/issue-44406.rs
blob: 83bbf884a4ff8da4a617e80022ad1bc4df62af65 (plain)
1
2
3
4
5
6
7
8
9
10
macro_rules! foo {
    ($rest: tt) => {
        bar(baz: $rest)
    }
}

fn main() {
    foo!(true); //~ ERROR expected type, found keyword
    //~^ ERROR expected identifier, found keyword
}