1 2 3 4 5 6 7 8 9 10 11
enum Foo { Bar { bar: bool }, Other, } fn main() { let foo = Some(Foo::Other); if let Some(Foo::Bar {_}) = foo {} //~^ ERROR expected field pattern, found `_` }