Suggest borrowing if a trait implementation is found for &/&mut <type> regression #85865
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
When both
&S
and&mut S
is implemented,Given the following code:
The previous output was:
The current output is:
Ideally the output should look like:
Not sure but it should show both
&s
and&mut s
. The previous output seemed to do a better job there. Maybe we could keep the last part of the previous output.Caused by #85369, although it is better in the sense it is more specific but I think it omitted quite some useful details.
The text was updated successfully, but these errors were encountered: