Closed

Description
The error message doesn't say that the problem is mismatching mutability.
trait Foo {
fn bar(&mut self, other: &mut Foo);
}
struct Baz;
impl Foo for Baz {
fn bar(&mut self, other: &Foo) {}
}
test.rs:8:5: 8:38 error: method `bar` has an incompatible type: expected trait Foo but found trait Foo
test.rs:8 fn bar(&mut self, other: &Foo) {}