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