2 #![allow(dead_code, unused_variables)]
6 A(isize, isize, usize),
10 match Blah::A(1, 1, 2) {
11 Blah::A(_, x, ref y) | Blah::B(x, ref y) => {}
12 //~^ ERROR mismatched types
13 //~| ERROR variable `y` is bound inconsistently across alternatives separated by `|`
16 match Blah::A(1, 1, 2) {
17 Blah::A(_, x, y) | Blah::B(x, y) => {}
18 //~^ ERROR mismatched types
19 //~| variable `y` is bound inconsistently across alternatives separated by `|`