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