]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13033.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-13033.stderr
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: &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`.