Suggest &mut T for &T and vice versa for missing trait bound if applicable #65062
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
A-trait-system
Area: Trait system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As seen on Twitter:
Missing trait does not hint (im)mutable reborrowing, at least in that specific case.
The text was updated successfully, but these errors were encountered: