]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/issue-56379.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / pattern / usefulness / issue-56379.stderr
1 error[E0004]: non-exhaustive patterns: `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
2 --> $DIR/issue-56379.rs:8:11
3 |
4 LL | match Foo::A(true) {
5 | ^^^^^^^^^^^^ patterns `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
6 |
7 note: `Foo` defined here
8 --> $DIR/issue-56379.rs:2:5
9 |
10 LL | enum Foo {
11 | ---
12 LL | A(bool),
13 | ^ not covered
14 LL | B(bool),
15 | ^ not covered
16 LL | C(bool),
17 | ^ not covered
18 = note: the matched value is of type `Foo`
19 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
20 |
21 LL ~ Foo::C(true) => {}
22 LL + Foo::A(false) | Foo::B(false) | Foo::C(false) => todo!()
23 |
24
25 error: aborting due to previous error
26
27 For more information about this error, try `rustc --explain E0004`.