summary refs log tree commit diff
path: root/src/test/ui/parser/pat-tuple-4.rs
blob: 2f03160430a22fa4df6befd3495e0f3a5cab158a (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    const PAT: u8 = 0;

    match 0 {
        (.. PAT) => {}
        //~^ ERROR `..X` range patterns are not supported
        //~| ERROR exclusive range pattern syntax is experimental
    }
}

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