2025-08-29 20:39:36 +00:00
|
|
|
error[E0408]: variable `Ban` is not bound in all patterns
|
|
|
|
|
--> $DIR/binding-typo.rs:12:9
|
|
|
|
|
|
|
|
|
|
|
LL | (Foo, Bar) | (Ban, Foo) => {}
|
|
|
|
|
| ^^^^^^^^^^ --- variable not in all patterns
|
|
|
|
|
| |
|
|
|
|
|
| pattern doesn't bind `Ban`
|
|
|
|
|
|
|
|
|
|
|
help: you might have meant to use the similarly named previously used binding `Bar`
|
|
|
|
|
|
|
|
|
|
|
LL - (Foo, Bar) | (Ban, Foo) => {}
|
|
|
|
|
LL + (Foo, Bar) | (Bar, Foo) => {}
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-30 01:44:40 +00:00
|
|
|
error[E0408]: variable `Ban` is not bound in all patterns
|
2025-08-30 16:24:26 +00:00
|
|
|
--> $DIR/binding-typo.rs:20:9
|
2025-08-30 01:44:40 +00:00
|
|
|
|
|
|
|
|
|
LL | (Foo, _) | (Ban, Foo) => {}
|
|
|
|
|
| ^^^^^^^^ --- variable not in all patterns
|
|
|
|
|
| |
|
|
|
|
|
| pattern doesn't bind `Ban`
|
|
|
|
|
|
|
|
|
|
|
help: you might have meant to use the similarly named unit variant `Bar`
|
|
|
|
|
|
|
|
|
|
|
LL - (Foo, _) | (Ban, Foo) => {}
|
|
|
|
|
LL + (Foo, _) | (Bar, Foo) => {}
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-30 16:24:26 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2025-08-29 20:39:36 +00:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0408`.
|