summary refs log tree commit diff
path: root/src/test/ui/parser/recover-tuple-pat.rs
blob: 488e8db6b878979e11f42b7c1866f4ae838875d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let x = (1, 2, 3, 4);
    match x {
        (1, .., 4) => {}
        (1, .=., 4) => { let _: usize = ""; }
        //~^ ERROR expected pattern, found `.`
        //~| ERROR mismatched types
        (.=., 4) => {}
        //~^ ERROR expected pattern, found `.`
        (1, 2, 3, 4) => {}
    }
}