]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13033.stderr
New upstream version 1.58.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-13033.stderr
CommitLineData
8faf50e0 1error[E0053]: method `bar` has an incompatible type for trait
0731742a 2 --> $DIR/issue-13033.rs:8:30
8faf50e0 3 |
dc9dc135
XL
4LL | fn bar(&mut self, other: &mut dyn Foo);
5 | ------------ type in trait
8faf50e0 6...
dc9dc135 7LL | fn bar(&mut self, other: &dyn Foo) {}
5869c6ff
XL
8 | ^^^^^^^^
9 | |
10 | types differ in mutability
cdc7bbd5 11 | help: change the parameter type to match the trait: `&mut dyn Foo`
8faf50e0 12 |
60c5eb7d
XL
13 = note: expected fn pointer `fn(&mut Baz, &mut dyn Foo)`
14 found fn pointer `fn(&mut Baz, &dyn Foo)`
8faf50e0
XL
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0053`.