|
1 |
| -error[E0409]: variable `i` is bound in inconsistent ways within the same match arm |
2 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:7:32 |
| 1 | +error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|` |
| 2 | + --> $DIR/resolve-inconsistent-binding-mode.rs:9:34 |
3 | 3 | |
|
4 |
| -LL | Opts::A(ref i) | Opts::B(i) => {} |
5 |
| - | - ^ bound in different ways |
6 |
| - | | |
7 |
| - | first binding |
| 4 | +LL | Opts::A(ref i) | Opts::B(i) => {} |
| 5 | + | - ^ bound in different ways |
| 6 | + | | |
| 7 | + | first binding |
8 | 8 |
|
9 |
| -error[E0409]: variable `i` is bound in inconsistent ways within the same match arm |
10 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:16:32 |
| 9 | +error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|` |
| 10 | + --> $DIR/resolve-inconsistent-binding-mode.rs:18:34 |
11 | 11 | |
|
12 |
| -LL | Opts::A(ref i) | Opts::B(i) => {} |
13 |
| - | - ^ bound in different ways |
14 |
| - | | |
15 |
| - | first binding |
| 12 | +LL | Opts::A(ref i) | Opts::B(i) => {} |
| 13 | + | - ^ bound in different ways |
| 14 | + | | |
| 15 | + | first binding |
16 | 16 |
|
17 |
| -error[E0409]: variable `i` is bound in inconsistent ways within the same match arm |
18 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:25:40 |
| 17 | +error[E0409]: variable `i` is bound inconsistently across alternatives separated by `|` |
| 18 | + --> $DIR/resolve-inconsistent-binding-mode.rs:27:42 |
19 | 19 | |
|
20 |
| -LL | Opts::A(ref mut i) | Opts::B(ref i) => {} |
21 |
| - | - first binding ^ bound in different ways |
| 20 | +LL | Opts::A(ref mut i) | Opts::B(ref i) => {} |
| 21 | + | - first binding ^ bound in different ways |
22 | 22 |
|
23 | 23 | error[E0308]: mismatched types
|
24 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:7:32 |
| 24 | + --> $DIR/resolve-inconsistent-binding-mode.rs:9:34 |
25 | 25 | |
|
26 | 26 | LL | match x {
|
27 | 27 | | - this expression has type `Opts`
|
28 |
| -LL | Opts::A(ref i) | Opts::B(i) => {} |
29 |
| - | ----- ^ expected `&isize`, found `isize` |
30 |
| - | | |
31 |
| - | first introduced with type `&isize` here |
| 28 | +LL | Opts::A(ref i) | Opts::B(i) => {} |
| 29 | + | ----- ^ expected `&isize`, found `isize` |
| 30 | + | | |
| 31 | + | first introduced with type `&isize` here |
32 | 32 | |
|
33 | 33 | = note: in the same arm, a binding must have the same type in all alternatives
|
34 | 34 |
|
35 | 35 | error[E0308]: mismatched types
|
36 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:16:32 |
| 36 | + --> $DIR/resolve-inconsistent-binding-mode.rs:18:34 |
37 | 37 | |
|
38 | 38 | LL | match x {
|
39 | 39 | | - this expression has type `Opts`
|
40 |
| -LL | Opts::A(ref i) | Opts::B(i) => {} |
41 |
| - | ----- ^ expected `&isize`, found `isize` |
42 |
| - | | |
43 |
| - | first introduced with type `&isize` here |
| 40 | +LL | Opts::A(ref i) | Opts::B(i) => {} |
| 41 | + | ----- ^ expected `&isize`, found `isize` |
| 42 | + | | |
| 43 | + | first introduced with type `&isize` here |
44 | 44 | |
|
45 | 45 | = note: in the same arm, a binding must have the same type in all alternatives
|
46 | 46 |
|
47 | 47 | error[E0308]: mismatched types
|
48 |
| - --> $DIR/resolve-inconsistent-binding-mode.rs:25:36 |
| 48 | + --> $DIR/resolve-inconsistent-binding-mode.rs:27:38 |
49 | 49 | |
|
50 | 50 | LL | match x {
|
51 | 51 | | - this expression has type `Opts`
|
52 |
| -LL | Opts::A(ref mut i) | Opts::B(ref i) => {} |
53 |
| - | --------- ^^^^^ types differ in mutability |
54 |
| - | | |
55 |
| - | first introduced with type `&mut isize` here |
| 52 | +LL | Opts::A(ref mut i) | Opts::B(ref i) => {} |
| 53 | + | --------- ^^^^^ types differ in mutability |
| 54 | + | | |
| 55 | + | first introduced with type `&mut isize` here |
56 | 56 | |
|
57 | 57 | = note: expected type `&mut isize`
|
58 | 58 | found type `&isize`
|
|
0 commit comments