summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/pat-lt-bracket-7.rs
blob: 327aef5ad15703cd16770ccdcd00dd8803c5e0ea (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    struct Thing(u8, [u8; 0]);
    let foo = core::iter::empty();

    for Thing(x[]) in foo {}
    //~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
}

const RECOVERY_WITNESS: () = 0; //~ ERROR mismatched types