Bad suggestion for _
in const
type
#81885
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As noted in #81509, we currently emit the following suggestion, which is incorrect:
This can be solved by not suggesting type params ever, or at least when
fn()
types are involved.The text was updated successfully, but these errors were encountered: