1 error[E0004]: non-exhaustive patterns: `Unstable` not covered
2 --> $DIR/unstable-gated-patterns.rs:10:11
4 LL | match UnstableEnum::Stable {
5 | ^^^^^^^^^^^^^^^^^^^^ pattern `Unstable` not covered
7 note: `UnstableEnum` defined here
8 --> $DIR/auxiliary/unstable.rs:11: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")]
16 | | ^^^^^^^^ not covered
19 = note: the matched value is of type `UnstableEnum`
20 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
22 LL ~ UnstableEnum::Stable2 => {}
23 LL + Unstable => todo!()
26 error: aborting due to previous error
28 For more information about this error, try `rustc --explain E0004`.