mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-28 01:02:27 +00:00
12 lines
200 B
Rust
12 lines
200 B
Rust
enum Thing {
|
|
Foo(u8),
|
|
Bar,
|
|
Baz
|
|
}
|
|
|
|
fn main() {
|
|
let Thing::Foo(y) = Thing::Foo(1);
|
|
//~^ ERROR refutable pattern in local binding
|
|
//~| `Thing::Bar` and `Thing::Baz` not covered
|
|
}
|