1 error: expected identifier, found reserved identifier `_`
2 --> $DIR/struct-enum-ignoring-field-with-underscore.rs:9:27
4 LL | if let Some(Foo::Bar {_}) = foo {}
5 | ^ expected identifier, found reserved identifier
7 error[E0027]: pattern does not mention field `bar`
8 --> $DIR/struct-enum-ignoring-field-with-underscore.rs:9:17
10 LL | if let Some(Foo::Bar {_}) = foo {}
11 | ^^^^^^^^^^^^ missing field `bar`
13 help: include the missing field in the pattern
15 LL | if let Some(Foo::Bar {_, bar }) = foo {}
17 help: if you don't care about this missing field, you can explicitly ignore it
19 LL | if let Some(Foo::Bar {_, .. }) = foo {}
22 error: aborting due to 2 previous errors
24 For more information about this error, try `rustc --explain E0027`.