rust/src/test/ui/pattern/usefulness/issue-56379.rs
2020-12-18 16:21:38 +00:00

15 lines
273 B
Rust

enum Foo {
A(bool),
B(bool),
C(bool),
}
fn main() {
match Foo::A(true) {
//~^ ERROR non-exhaustive patterns: `A(false)`, `B(false)` and `C(false)` not covered
Foo::A(true) => {}
Foo::B(true) => {}
Foo::C(true) => {}
}
}