1 error[E0004]: non-exhaustive patterns: `Stable2` and `_` not covered
2 --> $DIR/stable-gated-patterns.rs:8:11
4 LL | match UnstableEnum::Stable {
5 | ^^^^^^^^^^^^^^^^^^^^ patterns `Stable2` and `_` not covered
7 note: `UnstableEnum` defined here
8 --> $DIR/auxiliary/unstable.rs:9:5
10 LL | / pub enum UnstableEnum {
11 LL | | #[stable(feature = "stable_test_feature", since = "1.0.0")]
13 LL | | #[stable(feature = "stable_test_feature", since = "1.0.0")]
15 | | ^^^^^^^ not covered
16 LL | | #[unstable(feature = "unstable_test_feature", issue = "none")]
20 = note: the matched value is of type `UnstableEnum`
21 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
23 LL ~ UnstableEnum::Stable => {}
24 LL + Stable2 | _ => todo!()
27 error[E0004]: non-exhaustive patterns: `_` not covered
28 --> $DIR/stable-gated-patterns.rs:13:11
30 LL | match UnstableEnum::Stable {
31 | ^^^^^^^^^^^^^^^^^^^^ pattern `_` not covered
33 note: `UnstableEnum` defined here
34 --> $DIR/auxiliary/unstable.rs:5:1
36 LL | / pub enum UnstableEnum {
37 LL | | #[stable(feature = "stable_test_feature", since = "1.0.0")]
39 LL | | #[stable(feature = "stable_test_feature", since = "1.0.0")]
44 = note: the matched value is of type `UnstableEnum`
45 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
47 LL ~ UnstableEnum::Stable2 => {}
51 error: aborting due to 2 previous errors
53 For more information about this error, try `rustc --explain E0004`.