]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13033.stderr
New upstream version 1.36.0+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
XL
3 |
4LL | fn bar(&mut self, other: &mut Foo);
5 | -------- type in trait
6...
7LL | 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)`
12help: consider change the type to match the mutability in trait
13 |
14LL | fn bar(&mut self, other: &mut Foo) {}
15 | ^^^^^^^^
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0053`.