summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/E0409.rs
blob: 3710534cc0e34da90e5045ae030d9655823cd362 (plain)
1
2
3
4
5
6
7
8
9
fn main() {
    let x = (0, 2);

    match x {
        (0, ref y) | (y, 0) => {} //~ ERROR E0409
                                  //~| ERROR E0308
        _ => ()
    }
}