2022-09-02 22:01:35 -05:00
error[E0004]: non-exhaustive patterns: `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
2020-12-16 18:42:49 -06:00
--> $DIR/issue-56379.rs:8:11
|
2021-12-15 23:06:44 -06:00
LL | match Foo::A(true) {
2022-09-02 22:01:35 -05:00
| ^^^^^^^^^^^^ patterns `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
2020-12-16 18:42:49 -06:00
|
2021-12-15 23:06:44 -06:00
note: `Foo` defined here
--> $DIR/issue-56379.rs:2:5
|
LL | enum Foo {
| ---
LL | A(bool),
| ^ not covered
LL | B(bool),
| ^ not covered
LL | C(bool),
| ^ not covered
2020-12-16 18:42:49 -06:00
= note: the matched value is of type `Foo`
2021-12-16 16:46:13 -06:00
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
2021-12-15 20:28:09 -06:00
|
LL ~ Foo::C(true) => {}
2022-09-02 22:01:35 -05:00
LL + Foo::A(false) | Foo::B(false) | Foo::C(false) => todo!()
2021-12-15 20:28:09 -06:00
|
2020-12-16 18:42:49 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0004`.