]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/unstable-gated-patterns.stderr
Rollup merge of #96051 - newpavlov:duration_rounding, r=nagisa,joshtriplett
[rust.git] / src / test / ui / pattern / usefulness / unstable-gated-patterns.stderr
1 error[E0004]: non-exhaustive patterns: `Unstable` not covered
2   --> $DIR/unstable-gated-patterns.rs:10:11
3    |
4 LL |     match UnstableEnum::Stable {
5    |           ^^^^^^^^^^^^^^^^^^^^ pattern `Unstable` not covered
6    |
7 note: `UnstableEnum` defined here
8   --> $DIR/auxiliary/unstable.rs:11:5
9    |
10 LL | / pub enum UnstableEnum {
11 LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
12 LL | |     Stable,
13 LL | |     #[stable(feature = "stable_test_feature", since = "1.0.0")]
14 ...  |
15 LL | |     Unstable,
16    | |     ^^^^^^^^ not covered
17 LL | | }
18    | |_-
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
21    |
22 LL ~         UnstableEnum::Stable2 => {}
23 LL +         Unstable => todo!()
24    |
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0004`.