rust/tests/ui/pattern/usefulness/issue-56379.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
288 B
Rust
Raw Normal View History

2020-12-16 18:42:49 -06:00
enum Foo {
A(bool),
B(bool),
C(bool),
}
fn main() {
match Foo::A(true) {
//~^ ERROR non-exhaustive patterns: `Foo::A(false)`, `Foo::B(false)` and `Foo::C(false)` not covered
2020-12-16 18:42:49 -06:00
Foo::A(true) => {}
Foo::B(true) => {}
Foo::C(true) => {}
}
}