mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-28 09:51:43 +00:00
15 lines
288 B
Rust
15 lines
288 B
Rust
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) => {}
|
|
}
|
|
}
|