rust/tests/ui/structs-enums/struct-enum-ignoring-field-with-underscore.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
357 B
Plaintext
Raw Normal View History

2023-01-15 15:31:04 -06:00
error: expected field pattern, found `_`
--> $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
| ^
|
2023-01-15 15:31:04 -06:00
help: to omit remaining fields, use `..`
|
2023-01-15 15:31:04 -06:00
LL | if let Some(Foo::Bar {..}) = foo {}
| ~~
error: aborting due to 1 previous error