]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/usefulness/stable-gated-patterns.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / stable-gated-patterns.stderr
CommitLineData
f2b60f7d 1error[E0004]: non-exhaustive patterns: `UnstableEnum::Stable2` and `_` not covered
c295e0f8
XL
2 --> $DIR/stable-gated-patterns.rs:8:11
3 |
5e7ed085 4LL | match UnstableEnum::Stable {
f2b60f7d 5 | ^^^^^^^^^^^^^^^^^^^^ patterns `UnstableEnum::Stable2` and `_` not covered
c295e0f8 6 |
5e7ed085
FG
7note: `UnstableEnum` defined here
8 --> $DIR/auxiliary/unstable.rs:9:5
c295e0f8 9 |
064997fb
FG
10LL | pub enum UnstableEnum {
11 | ---------------------
12...
13LL | Stable2,
14 | ^^^^^^^ not covered
5e7ed085
FG
15 = note: the matched value is of type `UnstableEnum`
16help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
17 |
18LL ~ UnstableEnum::Stable => {}
f2b60f7d 19LL + UnstableEnum::Stable2 | _ => todo!()
c295e0f8 20 |
c295e0f8
XL
21
22error[E0004]: non-exhaustive patterns: `_` not covered
23 --> $DIR/stable-gated-patterns.rs:13:11
24 |
5e7ed085
FG
25LL | match UnstableEnum::Stable {
26 | ^^^^^^^^^^^^^^^^^^^^ pattern `_` not covered
27 |
28note: `UnstableEnum` defined here
29 --> $DIR/auxiliary/unstable.rs:5:1
30 |
064997fb
FG
31LL | pub enum UnstableEnum {
32 | ^^^^^^^^^^^^^^^^^^^^^
5e7ed085
FG
33 = note: the matched value is of type `UnstableEnum`
34help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35 |
36LL ~ UnstableEnum::Stable2 => {}
37LL + _ => todo!()
c295e0f8 38 |
c295e0f8
XL
39
40error: aborting due to 2 previous errors
41
42For more information about this error, try `rustc --explain E0004`.