fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
992 B27 linesraw
1error[E0004]: non-exhaustive patterns: `(Some(&[]), Err(_))` not covered
2  --> $DIR/non-exhaustive-match-nested.rs:5:11
3   |
4LL |     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
10error[E0004]: non-exhaustive patterns: `A(C)` not covered
11  --> $DIR/non-exhaustive-match-nested.rs:15:11
12   |
13LL | enum T { A(U), B }
14   | ------------------
15   | |        |
16   | |        not covered
17   | `T` defined here
18...
19LL |     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
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0004`.