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