Unhelpful suggestion to borrow when an iterator of wrong type is passed to a method with a trait bound (E0277) #140390
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Rationale and extra context
The suggestion to add a borrow is unhelpful (and if the borrow is actually added, the new suggestion will be to add yet another borrow).
Rust Version
Anything else?
A similar suggestion also appears in #134805 and #132041 but the context is a bit different, so I wasn't sure where to post this.
The text was updated successfully, but these errors were encountered: