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
4 LL | match Foo::A(true) {
5 | ^^^^^^^^^^^^ patterns `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
7 note: `Foo` defined here
8 --> $DIR/issue-56379.rs:2:5
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
21 LL ~ Foo::C(true) => {}
22 LL + Foo::A(false) | Foo::B(false) | Foo::C(false) => todo!()
25 error: aborting due to previous error
27 For more information about this error, try `rustc --explain E0004`.