Detect type ascription use that should be let assignment #78907
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code
currently emits
but it should also suggest
let foo: i32 = 4;
The text was updated successfully, but these errors were encountered: