]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/unstable-gated-patterns.stderr
New upstream version 1.64.0+dfsg1
[rustc.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 | ---------------------
12 ...
13 LL | Unstable,
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
17 |
18 LL ~ UnstableEnum::Stable2 => {}
19 LL + Unstable => todo!()
20 |
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0004`.