blob: b569993c6143edeff75e58bcf35395ba12bcee61 [file] [log] [blame]
enum Foo {
Bar { bar: bool },
Other,
}
fn main() {
let foo = Some(Foo::Other);
if let Some(Foo::Bar {_}) = foo {}
//~^ ERROR expected field pattern, found `_`
}