]> git.lizzy.rs Git - rust.git/blob - src/test/ui/or-patterns/exhaustiveness-non-exhaustive.stderr
Auto merge of #82864 - jyn514:short-circuit, r=GuillaumeGomez
[rust.git] / src / test / ui / or-patterns / exhaustiveness-non-exhaustive.stderr
1 error[E0004]: non-exhaustive patterns: `(2_u8..=u8::MAX, _)` not covered
2   --> $DIR/exhaustiveness-non-exhaustive.rs:5:11
3    |
4 LL |     match (0u8, 0u8) {
5    |           ^^^^^^^^^^ pattern `(2_u8..=u8::MAX, _)` 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 `(u8, u8)`
9
10 error[E0004]: non-exhaustive patterns: `((4_u8..=u8::MAX))` not covered
11   --> $DIR/exhaustiveness-non-exhaustive.rs:9:11
12    |
13 LL |     match ((0u8,),) {
14    |           ^^^^^^^^^ pattern `((4_u8..=u8::MAX))` not covered
15    |
16    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
17    = note: the matched value is of type `((u8,),)`
18
19 error[E0004]: non-exhaustive patterns: `(Some(2_u8..=u8::MAX))` not covered
20   --> $DIR/exhaustiveness-non-exhaustive.rs:13:11
21    |
22 LL |     match (Some(0u8),) {
23    |           ^^^^^^^^^^^^ pattern `(Some(2_u8..=u8::MAX))` not covered
24    |
25    = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
26    = note: the matched value is of type `(Option<u8>,)`
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0004`.