]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-13033.stderr
6c3651ff1217a28381698ec173b811ac0a11aa52
[rustc.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 dyn Foo);
5 | ------------ type in trait
6 ...
7 LL | fn bar(&mut self, other: &dyn Foo) {}
8 | ^^^^^^^^
9 | |
10 | types differ in mutability
11 | help: change the parameter type to match the trait: `&mut dyn Foo`
12 |
13 = note: expected fn pointer `fn(&mut Baz, &mut dyn Foo)`
14 found fn pointer `fn(&mut Baz, &dyn Foo)`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0053`.