]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/stable-gated-patterns.stderr
Rollup merge of #98315 - joshtriplett:stabilize-core-ffi-c, r=Mark-Simulacrum
[rust.git] / src / test / ui / pattern / usefulness / stable-gated-patterns.stderr
1 error[E0004]: non-exhaustive patterns: `Stable2` and `_` not covered
2   --> $DIR/stable-gated-patterns.rs:8:11
3    |
4 LL |     match UnstableEnum::Stable {
5    |           ^^^^^^^^^^^^^^^^^^^^ patterns `Stable2` and `_` not covered
6    |
7 note: `UnstableEnum` defined here
8   --> $DIR/auxiliary/unstable.rs:9:5
9    |
10 LL | pub enum UnstableEnum {
11    | ---------------------
12 ...
13 LL |     Stable2,
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, a match arm with multiple or-patterns as shown, or multiple match arms
17    |
18 LL ~         UnstableEnum::Stable => {}
19 LL +         Stable2 | _ => todo!()
20    |
21
22 error[E0004]: non-exhaustive patterns: `_` not covered
23   --> $DIR/stable-gated-patterns.rs:13:11
24    |
25 LL |     match UnstableEnum::Stable {
26    |           ^^^^^^^^^^^^^^^^^^^^ pattern `_` not covered
27    |
28 note: `UnstableEnum` defined here
29   --> $DIR/auxiliary/unstable.rs:5:1
30    |
31 LL | pub enum UnstableEnum {
32    | ^^^^^^^^^^^^^^^^^^^^^
33    = note: the matched value is of type `UnstableEnum`
34 help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
35    |
36 LL ~         UnstableEnum::Stable2 => {}
37 LL +         _ => todo!()
38    |
39
40 error: aborting due to 2 previous errors
41
42 For more information about this error, try `rustc --explain E0004`.