]> git.proxmox.com Git - rustc.git/blame - tests/ui/issues/issue-13033.stderr
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / 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 4LL | fn bar(&mut self, other: &dyn Foo) {}
5869c6ff
XL
5 | ^^^^^^^^
6 | |
7 | types differ in mutability
cdc7bbd5 8 | help: change the parameter type to match the trait: `&mut dyn Foo`
8faf50e0 9 |
a2a8927a
XL
10note: type in trait
11 --> $DIR/issue-13033.rs:2:30
12 |
13LL | fn bar(&mut self, other: &mut dyn Foo);
14 | ^^^^^^^^^^^^
9c376795
FG
15 = note: expected signature `fn(&mut Baz, &mut dyn Foo)`
16 found signature `fn(&mut Baz, &dyn Foo)`
8faf50e0
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0053`.