]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/non-exhaustive-match-nested.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / non-exhaustive-match-nested.stderr
1 error[E0004]: non-exhaustive patterns: `(Some(&[]), Err(_))` not covered
2 --> $DIR/non-exhaustive-match-nested.rs:5: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 = note: the matched value is of type `(std::option::Option<&[T]>, std::result::Result<&[T], ()>)`
9
10 error[E0004]: non-exhaustive patterns: `A(C)` not covered
11 --> $DIR/non-exhaustive-match-nested.rs:15:11
12 |
13 LL | enum T { A(U), B }
14 | ------------------
15 | | |
16 | | not covered
17 | `T` defined here
18 ...
19 LL | match x {
20 | ^ pattern `A(C)` not covered
21 |
22 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
23 = note: the matched value is of type `T`
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0004`.