1 error[E0409]: variable `i` is bound in inconsistent ways within the same match arm
2 --> $DIR/resolve-inconsistent-binding-mode.rs:7:32
4 LL | Opts::A(ref i) | Opts::B(i) => {}
5 | - ^ bound in different ways
9 error[E0409]: variable `i` is bound in inconsistent ways within the same match arm
10 --> $DIR/resolve-inconsistent-binding-mode.rs:16:32
12 LL | Opts::A(ref i) | Opts::B(i) => {}
13 | - ^ bound in different ways
17 error[E0409]: variable `i` is bound in inconsistent ways within the same match arm
18 --> $DIR/resolve-inconsistent-binding-mode.rs:25:40
20 LL | Opts::A(ref mut i) | Opts::B(ref i) => {}
21 | - first binding ^ bound in different ways
23 error[E0308]: mismatched types
24 --> $DIR/resolve-inconsistent-binding-mode.rs:7:32
26 LL | Opts::A(ref i) | Opts::B(i) => {}
27 | ^ expected `&isize`, found `isize`
29 error[E0308]: mismatched types
30 --> $DIR/resolve-inconsistent-binding-mode.rs:16:32
32 LL | Opts::A(ref i) | Opts::B(i) => {}
33 | ^ expected `&isize`, found `isize`
35 error[E0308]: mismatched types
36 --> $DIR/resolve-inconsistent-binding-mode.rs:25:36
38 LL | Opts::A(ref mut i) | Opts::B(ref i) => {}
39 | ^^^^^ types differ in mutability
41 = note: expected type `&mut isize`
44 error: aborting due to 6 previous errors
46 Some errors have detailed explanations: E0308, E0409.
47 For more information about an error, try `rustc --explain E0308`.