| ------------ type in trait
...
LL | fn bar(&mut self, other: &dyn Foo) {}
- | ^^^^^^^^ types differ in mutability
+ | ^^^^^^^^
+ | |
+ | types differ in mutability
+ | help: consider changing the mutability to match the trait: `&mut dyn Foo`
|
= note: expected fn pointer `fn(&mut Baz, &mut dyn Foo)`
found fn pointer `fn(&mut Baz, &dyn Foo)`
-help: consider change the type to match the mutability in trait
- |
-LL | fn bar(&mut self, other: &mut dyn Foo) {}
- | ^^^^^^^^^^^^
error: aborting due to previous error