Calling Iterator methods on IntoIterator should suggest .into_iter() #117711
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
It's an easy mistake that takes a moment to realize, so imo it would be cool to handle it better.
Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: