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