summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/pat-tuple-bad-type.rs
blob: 98481167a59d1c87ba7a21d706fdcb43608e946d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let x; //~ ERROR type annotations needed

    match x {
        (..) => {}
        _ => {}
    }

    match 0u8 {
        (..) => {} //~ ERROR mismatched types
        _ => {}
    }

    x = 10;
}