summary refs log tree commit diff
path: root/src/test/ui/parser/pat-lt-bracket-6.rs
blob: f27caa5d78c8eaf42be834c1f8963dbadea97f53 (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {
    struct Test(&'static u8, [u8; 0]);
    let x = Test(&0, []);

    let Test(&desc[..]) = x;
    //~^ ERROR: expected one of `)`, `,`, `@`, or `|`, found `[`
    //~^^ ERROR subslice patterns are unstable
}

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