11error[E0408]: variable `Ban` is not bound in all patterns
2- --> $DIR/binding-typo-2.rs:13 :9
2+ --> $DIR/binding-typo-2.rs:14 :9
33 |
44LL | (Foo, Bar) | (Ban, Foo) => {}
55 | ^^^^^^^^^^ --- variable not in all patterns
@@ -13,7 +13,7 @@ LL + (Foo, Bar) | (Bar, Foo) => {}
1313 |
1414
1515error[E0408]: variable `Ban` is not bound in all patterns
16- --> $DIR/binding-typo-2.rs:24 :9
16+ --> $DIR/binding-typo-2.rs:25 :9
1717 |
1818LL | (Foo, _) | (Ban, Foo) => {}
1919 | ^^^^^^^^ --- variable not in all patterns
@@ -27,7 +27,7 @@ LL + (Foo, _) | (Bar, Foo) => {}
2727 |
2828
2929error[E0408]: variable `Non` is not bound in all patterns
30- --> $DIR/binding-typo-2.rs:43 :15
30+ --> $DIR/binding-typo-2.rs:44 :15
3131 |
3232LL | Non | None => {}
3333 | --- ^^^^ pattern doesn't bind `Non`
@@ -40,7 +40,7 @@ LL | None | None => {}
4040 | +
4141
4242error[E0408]: variable `Non` is not bound in all patterns
43- --> $DIR/binding-typo-2.rs:53 :15
43+ --> $DIR/binding-typo-2.rs:54 :15
4444 |
4545LL | Non | Some(_) => {}
4646 | --- ^^^^^^^ pattern doesn't bind `Non`
@@ -54,7 +54,7 @@ LL + core::option::Option::None | Some(_) => {}
5454 |
5555
5656error[E0408]: variable `Ban` is not bound in all patterns
57- --> $DIR/binding-typo-2.rs:68 :9
57+ --> $DIR/binding-typo-2.rs:69 :9
5858 |
5959LL | (Foo, _) | (Ban, Foo) => {}
6060 | ^^^^^^^^ --- variable not in all patterns
@@ -78,7 +78,7 @@ LL + (Foo, _) | (Bat, Foo) => {}
7878 |
7979
8080error[E0408]: variable `Ban` is not bound in all patterns
81- --> $DIR/binding-typo-2.rs:85 :9
81+ --> $DIR/binding-typo-2.rs:86 :9
8282 |
8383LL | (Foo, _) | (Ban, Foo) => {}
8484 | ^^^^^^^^ --- variable not in all patterns
@@ -97,7 +97,7 @@ LL + (Foo, _) | (Bat, Foo) => {}
9797 |
9898
9999error: variable `Ban` is assigned to, but never used
100- --> $DIR/binding-typo-2.rs:13 :23
100+ --> $DIR/binding-typo-2.rs:14 :23
101101 |
102102LL | (Foo, Bar) | (Ban, Foo) => {}
103103 | ^^^
@@ -115,7 +115,7 @@ LL + (Foo, Bar) | (Lol::Bar, Foo) => {}
115115 |
116116
117117error: variable `Ban` is assigned to, but never used
118- --> $DIR/binding-typo-2.rs:24 :21
118+ --> $DIR/binding-typo-2.rs:25 :21
119119 |
120120LL | (Foo, _) | (Ban, Foo) => {}
121121 | ^^^
@@ -128,7 +128,7 @@ LL + (Foo, _) | (Lol::Bar, Foo) => {}
128128 |
129129
130130error: unused variable: `Non`
131- --> $DIR/binding-typo-2.rs:36 :9
131+ --> $DIR/binding-typo-2.rs:37 :9
132132 |
133133LL | Non => {}
134134 | ^^^
@@ -144,7 +144,7 @@ LL + std::prelude::v1::None => {}
144144 |
145145
146146error: unused variable: `Non`
147- --> $DIR/binding-typo-2.rs:43 :9
147+ --> $DIR/binding-typo-2.rs:44 :9
148148 |
149149LL | Non | None => {}
150150 | ^^^
@@ -160,7 +160,7 @@ LL + std::prelude::v1::None | None => {}
160160 |
161161
162162error: unused variable: `Non`
163- --> $DIR/binding-typo-2.rs:53 :9
163+ --> $DIR/binding-typo-2.rs:54 :9
164164 |
165165LL | Non | Some(_) => {}
166166 | ^^^
@@ -176,7 +176,7 @@ LL + std::prelude::v1::None | Some(_) => {}
176176 |
177177
178178error: variable `Ban` is assigned to, but never used
179- --> $DIR/binding-typo-2.rs:68 :21
179+ --> $DIR/binding-typo-2.rs:69 :21
180180 |
181181LL | (Foo, _) | (Ban, Foo) => {}
182182 | ^^^
@@ -189,7 +189,7 @@ LL + (Foo, _) | (Lol::Bar, Foo) => {}
189189 |
190190
191191error: variable `Ban` is assigned to, but never used
192- --> $DIR/binding-typo-2.rs:85 :21
192+ --> $DIR/binding-typo-2.rs:86 :21
193193 |
194194LL | (Foo, _) | (Ban, Foo) => {}
195195 | ^^^
@@ -202,7 +202,7 @@ LL + (Foo, _) | (Lol::Bar, Foo) => {}
202202 |
203203
204204error: unused variable: `Ban`
205- --> $DIR/binding-typo-2.rs:97 :10
205+ --> $DIR/binding-typo-2.rs:98 :10
206206 |
207207LL | (Ban, _) => {}
208208 | ^^^
@@ -218,7 +218,7 @@ LL + (Lol::Bar, _) => {}
218218 |
219219
220220error: unused variable: `Ban`
221- --> $DIR/binding-typo-2.rs:103 :9
221+ --> $DIR/binding-typo-2.rs:104 :9
222222 |
223223LL | Ban => {}
224224 | ^^^
@@ -233,6 +233,21 @@ LL - Ban => {}
233233LL + Bay => {}
234234 |
235235
236- error: aborting due to 15 previous errors
236+ error: unused variable: `Batery`
237+ --> $DIR/binding-typo-2.rs:110:9
238+ |
239+ LL | Batery => {}
240+ | ^^^^^^
241+ |
242+ help: if this is intentional, prefix it with an underscore
243+ |
244+ LL | _Batery => {}
245+ | +
246+ help: you might have meant to pattern match on the similarly named constant `Battery`
247+ |
248+ LL | Battery => {}
249+ | +
250+
251+ error: aborting due to 16 previous errors
237252
238253For more information about this error, try `rustc --explain E0408`.
0 commit comments