Incorrect compiler hint for method with (&self) and (&mut self) signature when multiple applicable items are found in scope #65635
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
Playground
Error:
Should be
A::method(&Empty {})
andB::method(&Empty {})
.The text was updated successfully, but these errors were encountered: