]>
Commit | Line | Data |
---|---|---|
1 | error[E0053]: method `bar` has an incompatible type for trait | |
2 | --> $DIR/issue-13033.rs:8:30 | |
3 | | | |
4 | LL | fn bar(&mut self, other: &dyn Foo) {} | |
5 | | ^^^^^^^^ | |
6 | | | | |
7 | | types differ in mutability | |
8 | | help: change the parameter type to match the trait: `&mut dyn Foo` | |
9 | | | |
10 | note: type in trait | |
11 | --> $DIR/issue-13033.rs:2:30 | |
12 | | | |
13 | LL | fn bar(&mut self, other: &mut dyn Foo); | |
14 | | ^^^^^^^^^^^^ | |
15 | = note: expected signature `fn(&mut Baz, &mut dyn Foo)` | |
16 | found signature `fn(&mut Baz, &dyn Foo)` | |
17 | ||
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0053`. |