]> git.proxmox.com Git - rustc.git/blob - src/test/ui/or-patterns/exhaustiveness-non-exhaustive.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / or-patterns / exhaustiveness-non-exhaustive.stderr
1 error[E0004]: non-exhaustive patterns: `(2u8..=std::u8::MAX, _)` not covered
2 --> $DIR/exhaustiveness-non-exhaustive.rs:14:11
3 |
4 LL | match (0u8, 0u8) {
5 | ^^^^^^^^^^ pattern `(2u8..=std::u8::MAX, _)` 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: `((4u8..=std::u8::MAX))` not covered
10 --> $DIR/exhaustiveness-non-exhaustive.rs:18:11
11 |
12 LL | match ((0u8,),) {
13 | ^^^^^^^^^ pattern `((4u8..=std::u8::MAX))` not covered
14 |
15 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
16
17 error[E0004]: non-exhaustive patterns: `(Some(2u8..=std::u8::MAX))` not covered
18 --> $DIR/exhaustiveness-non-exhaustive.rs:22:11
19 |
20 LL | match (Some(0u8),) {
21 | ^^^^^^^^^^^^ pattern `(Some(2u8..=std::u8::MAX))` not covered
22 |
23 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
24
25 error: or-patterns are not fully implemented yet
26 --> $DIR/exhaustiveness-non-exhaustive.rs:10:10
27 |
28 LL | (0 | _,) => {}
29 | ^^^^^
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0004`.