summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/recover-enum.rs
blob: 08dd939e2c023f7f3290a796d02f4bc9e005b1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    enum Test {
        Very //~ HELP missing `,`
        Bad(usize) //~ HELP missing `,`
        //~^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `Bad`
        Stuff { a: usize } //~ HELP missing `,`
        //~^ ERROR expected one of `,`, `=`, or `}`, found `Stuff`
        Here
        //~^ ERROR expected one of `,`, `=`, or `}`, found `Here`
    }
}