@@ -5,12 +5,6 @@ LL | a | b => {}
5
5
| ^ - variable not in all patterns
6
6
| |
7
7
| pattern doesn't bind `b`
8
- |
9
- help: you might have meant to use the similarly named previously used binding `a`
10
- |
11
- LL - a | b => {}
12
- LL + a | a => {}
13
- |
14
8
15
9
error[E0408]: variable `a` is not bound in all patterns
16
10
--> $DIR/resolve-inconsistent-names.rs:13:13
@@ -19,15 +13,9 @@ LL | a | b => {}
19
13
| - ^ pattern doesn't bind `a`
20
14
| |
21
15
| variable not in all patterns
22
- |
23
- help: you might have meant to use the similarly named previously used binding `b`
24
- |
25
- LL - a | b => {}
26
- LL + b | b => {}
27
- |
28
16
29
17
error[E0408]: variable `c` is not bound in all patterns
30
- --> $DIR/resolve-inconsistent-names.rs:21 :9
18
+ --> $DIR/resolve-inconsistent-names.rs:19 :9
31
19
|
32
20
LL | (A, B) | (ref B, c) | (c, A) => ()
33
21
| ^^^^^^ - - variable not in all patterns
@@ -36,7 +24,7 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
36
24
| pattern doesn't bind `c`
37
25
38
26
error[E0408]: variable `A` is not bound in all patterns
39
- --> $DIR/resolve-inconsistent-names.rs:21 :18
27
+ --> $DIR/resolve-inconsistent-names.rs:19 :18
40
28
|
41
29
LL | (A, B) | (ref B, c) | (c, A) => ()
42
30
| - ^^^^^^^^^^ - variable not in all patterns
@@ -50,7 +38,7 @@ LL | (E::A, B) | (ref B, c) | (c, A) => ()
50
38
| +++
51
39
52
40
error[E0408]: variable `B` is not bound in all patterns
53
- --> $DIR/resolve-inconsistent-names.rs:21 :31
41
+ --> $DIR/resolve-inconsistent-names.rs:19 :31
54
42
|
55
43
LL | (A, B) | (ref B, c) | (c, A) => ()
56
44
| - - ^^^^^^ pattern doesn't bind `B`
@@ -59,15 +47,15 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
59
47
| variable not in all patterns
60
48
61
49
error[E0409]: variable `B` is bound inconsistently across alternatives separated by `|`
62
- --> $DIR/resolve-inconsistent-names.rs:21 :23
50
+ --> $DIR/resolve-inconsistent-names.rs:19 :23
63
51
|
64
52
LL | (A, B) | (ref B, c) | (c, A) => ()
65
53
| - ^ bound in different ways
66
54
| |
67
55
| first binding
68
56
69
57
error[E0408]: variable `Const2` is not bound in all patterns
70
- --> $DIR/resolve-inconsistent-names.rs:33 :9
58
+ --> $DIR/resolve-inconsistent-names.rs:31 :9
71
59
|
72
60
LL | (CONST1, _) | (_, Const2) => ()
73
61
| ^^^^^^^^^^^ ------ variable not in all patterns
@@ -80,7 +68,7 @@ LL | (CONST1, _) | (_, m::Const2) => ()
80
68
| +++
81
69
82
70
error[E0408]: variable `CONST1` is not bound in all patterns
83
- --> $DIR/resolve-inconsistent-names.rs:33 :23
71
+ --> $DIR/resolve-inconsistent-names.rs:31 :23
84
72
|
85
73
LL | (CONST1, _) | (_, Const2) => ()
86
74
| ------ ^^^^^^^^^^^ pattern doesn't bind `CONST1`
@@ -94,7 +82,7 @@ LL | const CONST1: usize = 10;
94
82
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
95
83
96
84
error[E0308]: mismatched types
97
- --> $DIR/resolve-inconsistent-names.rs:21 :19
85
+ --> $DIR/resolve-inconsistent-names.rs:19 :19
98
86
|
99
87
LL | match x {
100
88
| - this expression has type `(E, E)`
0 commit comments