1 error[E0004]: non-exhaustive patterns: `UnstableEnum::Stable2` and `_` not covered
2 --> $DIR/stable-gated-patterns.rs:8:11
4 LL | match UnstableEnum::Stable {
5 | ^^^^^^^^^^^^^^^^^^^^ patterns `UnstableEnum::Stable2` and `_` not covered
7 note: `UnstableEnum` defined here
8 --> $DIR/auxiliary/unstable.rs:9:5
10 LL | pub enum UnstableEnum {
11 | ---------------------
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
18 LL ~ UnstableEnum::Stable => {}
19 LL + UnstableEnum::Stable2 | _ => todo!()
22 error[E0004]: non-exhaustive patterns: `_` not covered
23 --> $DIR/stable-gated-patterns.rs:13:11
25 LL | match UnstableEnum::Stable {
26 | ^^^^^^^^^^^^^^^^^^^^ pattern `_` not covered
28 note: `UnstableEnum` defined here
29 --> $DIR/auxiliary/unstable.rs:5:1
31 LL | pub enum UnstableEnum {
32 | ^^^^^^^^^^^^^^^^^^^^^
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
36 LL ~ UnstableEnum::Stable2 => {}
40 error: aborting due to 2 previous errors
42 For more information about this error, try `rustc --explain E0004`.