When pattern doesn't match the type of if let expression, see if a field would be of the correct type and provide an apprpriate structured suggestion #81222
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-typesystem
Area: The type system
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Just encountered the following output:
It would be nice if we could peek at the fields of
break_expr
and provide an appropriate structured suggestion:The text was updated successfully, but these errors were encountered: