rust/src/test/ui/issues/issue-31561.rs
2018-12-25 21:08:33 -07:00

11 lines
168 B
Rust

enum Thing {
Foo(u8),
Bar,
Baz
}
fn main() {
let Thing::Foo(y) = Thing::Foo(1);
//~^ ERROR refutable pattern in local binding: `Bar` not covered
}