blob: 097cf98d0126b91a0c8dc9a6bf452a3c1fb28667 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
Foo::A(true) => {}
Foo::B(true) => {}
Foo::C(true) => {}
}
}
|