rust/src/test/ui/non-exhaustive/non-exhaustive-match-nested.stderr

26 lines
970 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0004]: non-exhaustive patterns: `(Some(&[]), Err(_))` not covered
2018-12-25 09:56:47 -06:00
--> $DIR/non-exhaustive-match-nested.rs:7:11
2018-08-08 07:28:26 -05:00
|
LL | match (l1, l2) { //~ ERROR non-exhaustive patterns: `(Some(&[]), Err(_))` not covered
| ^^^^^^^^ pattern `(Some(&[]), Err(_))` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
2018-08-08 07:28:26 -05:00
error[E0004]: non-exhaustive patterns: `A(C)` not covered
2018-12-25 09:56:47 -06:00
--> $DIR/non-exhaustive-match-nested.rs:17:11
2018-08-08 07:28:26 -05:00
|
LL | enum T { A(U), B }
| ------------------
| | |
| | not covered
| `T` defined here
...
LL | match x { //~ ERROR non-exhaustive patterns: `A(C)` not covered
| ^ pattern `A(C)` not covered
|
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
2018-08-08 07:28:26 -05:00
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0004`.