fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0409]: variable `i` is bound in inconsistent ways within the same match arm 2 --> $DIR/resolve-inconsistent-binding-mode.rs:7:32 3 | 4LL | Opts::A(ref i) | Opts::B(i) => {} 5 | - ^ bound in different ways 6 | | 7 | first binding 8 9error[E0409]: variable `i` is bound in inconsistent ways within the same match arm 10 --> $DIR/resolve-inconsistent-binding-mode.rs:16:32 11 | 12LL | Opts::A(ref i) | Opts::B(i) => {} 13 | - ^ bound in different ways 14 | | 15 | first binding 16 17error[E0409]: variable `i` is bound in inconsistent ways within the same match arm 18 --> $DIR/resolve-inconsistent-binding-mode.rs:25:40 19 | 20LL | Opts::A(ref mut i) | Opts::B(ref i) => {} 21 | - first binding ^ bound in different ways 22 23error[E0308]: mismatched types 24 --> $DIR/resolve-inconsistent-binding-mode.rs:7:32 25 | 26LL | match x { 27 | - this expression has type `Opts` 28LL | Opts::A(ref i) | Opts::B(i) => {} 29 | ^ expected `&isize`, found `isize` 30 31error[E0308]: mismatched types 32 --> $DIR/resolve-inconsistent-binding-mode.rs:16:32 33 | 34LL | match x { 35 | - this expression has type `Opts` 36LL | Opts::A(ref i) | Opts::B(i) => {} 37 | ^ expected `&isize`, found `isize` 38 39error[E0308]: mismatched types 40 --> $DIR/resolve-inconsistent-binding-mode.rs:25:36 41 | 42LL | match x { 43 | - this expression has type `Opts` 44LL | Opts::A(ref mut i) | Opts::B(ref i) => {} 45 | ^^^^^ types differ in mutability 46 | 47 = note: expected type `&mut isize` 48 found type `&isize` 49 50error: aborting due to 6 previous errors 51 52Some errors have detailed explanations: E0308, E0409. 53For more information about an error, try `rustc --explain E0308`.