]> git.proxmox.com Git - rustc.git/blob - src/test/ui/or-patterns/exhaustiveness-non-exhaustive.stderr
Update upstream source from tag 'upstream/1.48.0_beta.8+dfsg1'
[rustc.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:6: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:10: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:14: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`.