1 error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|`
2 --> $DIR/resolve-inconsistent-binding-mode.rs:9:34
4 LL | Opts::A(ref i) | Opts::B(i) => {}
5 | - ^ bound in different ways
9 error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|`
10 --> $DIR/resolve-inconsistent-binding-mode.rs:18:34
12 LL | Opts::A(ref i) | Opts::B(i) => {}
13 | - ^ bound in different ways
17 error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|`
18 --> $DIR/resolve-inconsistent-binding-mode.rs:27:42
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:9:34
27 | - this expression has type `Opts`
28 LL | Opts::A(ref i) | Opts::B(i) => {}
29 | ----- ^ expected `&isize`, found `isize`
31 | first introduced with type `&isize` here
33 = note: in the same arm, a binding must have the same type in all alternatives
34 help: consider adding `ref`
36 LL | Opts::A(ref i) | Opts::B(ref i) => {}
39 error[E0308]: mismatched types
40 --> $DIR/resolve-inconsistent-binding-mode.rs:18:34
43 | - this expression has type `Opts`
44 LL | Opts::A(ref i) | Opts::B(i) => {}
45 | ----- ^ expected `&isize`, found `isize`
47 | first introduced with type `&isize` here
49 = note: in the same arm, a binding must have the same type in all alternatives
50 help: consider adding `ref`
52 LL | Opts::A(ref i) | Opts::B(ref i) => {}
55 error[E0308]: mismatched types
56 --> $DIR/resolve-inconsistent-binding-mode.rs:27:38
59 | - this expression has type `Opts`
60 LL | Opts::A(ref mut i) | Opts::B(ref i) => {}
61 | --------- ^^^^^ types differ in mutability
63 | first introduced with type `&mut isize` here
65 = note: expected mutable reference `&mut isize`
66 found reference `&isize`
67 = note: in the same arm, a binding must have the same type in all alternatives
69 error: aborting due to 6 previous errors
71 Some errors have detailed explanations: E0308, E0409.
72 For more information about an error, try `rustc --explain E0308`.