2023-01-15 15:31:04 -06:00
|
|
|
error: expected field pattern, found `_`
|
2022-03-23 08:54:02 -05:00
|
|
|
--> $DIR/struct-enum-ignoring-field-with-underscore.rs:9:27
|
|
|
|
|
|
|
|
|
LL | if let Some(Foo::Bar {_}) = foo {}
|
2023-01-15 15:31:04 -06:00
|
|
|
| ^
|
2022-03-23 08:54:02 -05:00
|
|
|
|
|
2023-01-15 15:31:04 -06:00
|
|
|
help: to omit remaining fields, use `..`
|
2022-03-23 08:54:02 -05:00
|
|
|
|
|
2023-01-15 15:31:04 -06:00
|
|
|
LL | if let Some(Foo::Bar {..}) = foo {}
|
|
|
|
| ~~
|
2022-03-23 08:54:02 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-03-23 08:54:02 -05:00
|
|
|
|