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