Incorrect "Trait not implemented for &mut A" message #17746
Labels
A-resolve
Area: Name resolution
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
Test case:
rustc output:
Expected behavior:
&mut self
is automatically converted to&self
in theself.a()
call.The bug disappears if
fn b
is changed to take&self
, iffn a
is changed to take&mut self
, or if the call is changed to(&*self).a()
.CC @aturon
The text was updated successfully, but these errors were encountered: