9 Opts::A(ref i) | Opts::B(i) => {}
10 //~^ ERROR variable `i` is bound inconsistently
11 //~^^ ERROR mismatched types
16 fn matcher2(x: Opts) {
18 Opts::A(ref i) | Opts::B(i) => {}
19 //~^ ERROR variable `i` is bound inconsistently
20 //~^^ ERROR mismatched types
25 fn matcher4(x: Opts) {
27 Opts::A(ref mut i) | Opts::B(ref i) => {}
28 //~^ ERROR variable `i` is bound inconsistently
29 //~^^ ERROR mismatched types
34 fn matcher5(x: Opts) {
36 Opts::A(ref i) | Opts::B(ref i) => {}