rust/src/test/ui/resolve/resolve-inconsistent-names.stderr

20 lines
569 B
Plaintext
Raw Normal View History

error[E0408]: variable `a` is not bound in all patterns
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-inconsistent-names.rs:4:12
|
2019-03-09 06:03:44 -06:00
LL | a | b => {}
| - ^ pattern doesn't bind `a`
| |
| variable not in all patterns
error[E0408]: variable `b` is not bound in all patterns
2018-12-25 09:56:47 -06:00
--> $DIR/resolve-inconsistent-names.rs:4:8
|
2019-03-09 06:03:44 -06:00
LL | a | b => {}
| ^ - variable not in all patterns
| |
| pattern doesn't bind `b`
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0408`.