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 | ---------------------
14 | ^^^^^^^^ not covered
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 or an explicit pattern as shown
18 LL ~ UnstableEnum::Stable2 => {}
19 LL + Unstable => todo!()
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0004`.