]> git.lizzy.rs Git - rust.git/blob - src/test/ui/non-exhaustive/non-exhaustive-match-nested.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / non-exhaustive / non-exhaustive-match-nested.stderr
1 error[E0004]: non-exhaustive patterns: `(Some(&[]), Err(_))` not covered
2   --> $DIR/non-exhaustive-match-nested.rs:7:11
3    |
4 LL |     match (l1, l2) {
5    |           ^^^^^^^^ pattern `(Some(&[]), Err(_))` not covered
6    |
7    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8
9 error[E0004]: non-exhaustive patterns: `A(C)` not covered
10   --> $DIR/non-exhaustive-match-nested.rs:17:11
11    |
12 LL | enum T { A(U), B }
13    | ------------------
14    | |        |
15    | |        not covered
16    | `T` defined here
17 ...
18 LL |     match x {
19    |           ^ pattern `A(C)` not covered
20    |
21    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0004`.