On "pattern in arg for fn def without body" emit structured suggestion #78927
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-papercut
Diagnostics: An error or lint that needs small tweaks.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Taken from #35203 (comment)
We should suggest to use an identifier. When possible take that identifier from the pattern, otherwise
_
should work just as well.CC @pickfire
The text was updated successfully, but these errors were encountered: