summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/ident-recovery.rs
blob: 7575372b940fdfa7cb85b674dc45ca7affe11137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn ,comma() {
    //~^ ERROR expected identifier, found `,`
    struct Foo {
        x: i32,,
        //~^ ERROR expected identifier, found `,`
        y: u32,
    }
}

fn break() {
//~^ ERROR expected identifier, found keyword `break`
    let continue = 5;
    //~^ ERROR expected identifier, found keyword `continue`
}

fn main() {}