@@ -5,12 +5,6 @@ LL | a | b => {}
55 | ^ - variable not in all patterns
66 | |
77 | 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- |
148
159error[E0408]: variable `a` is not bound in all patterns
1610 --> $DIR/resolve-inconsistent-names.rs:13:13
@@ -19,15 +13,9 @@ LL | a | b => {}
1913 | - ^ pattern doesn't bind `a`
2014 | |
2115 | 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- |
2816
2917error[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
3119 |
3220LL | (A, B) | (ref B, c) | (c, A) => ()
3321 | ^^^^^^ - - variable not in all patterns
@@ -36,7 +24,7 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
3624 | pattern doesn't bind `c`
3725
3826error[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
4028 |
4129LL | (A, B) | (ref B, c) | (c, A) => ()
4230 | - ^^^^^^^^^^ - variable not in all patterns
@@ -50,7 +38,7 @@ LL | (E::A, B) | (ref B, c) | (c, A) => ()
5038 | +++
5139
5240error[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
5442 |
5543LL | (A, B) | (ref B, c) | (c, A) => ()
5644 | - - ^^^^^^ pattern doesn't bind `B`
@@ -59,15 +47,15 @@ LL | (A, B) | (ref B, c) | (c, A) => ()
5947 | variable not in all patterns
6048
6149error[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
6351 |
6452LL | (A, B) | (ref B, c) | (c, A) => ()
6553 | - ^ bound in different ways
6654 | |
6755 | first binding
6856
6957error[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
7159 |
7260LL | (CONST1, _) | (_, Const2) => ()
7361 | ^^^^^^^^^^^ ------ variable not in all patterns
@@ -80,7 +68,7 @@ LL | (CONST1, _) | (_, m::Const2) => ()
8068 | +++
8169
8270error[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
8472 |
8573LL | (CONST1, _) | (_, Const2) => ()
8674 | ------ ^^^^^^^^^^^ pattern doesn't bind `CONST1`
@@ -94,7 +82,7 @@ LL | const CONST1: usize = 10;
9482 | ^^^^^^^^^^^^^^^^^^^^^^^^^ not accessible
9583
9684error[E0308]: mismatched types
97- --> $DIR/resolve-inconsistent-names.rs:21 :19
85+ --> $DIR/resolve-inconsistent-names.rs:19 :19
9886 |
9987LL | match x {
10088 | - this expression has type `(E, E)`
0 commit comments