]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-13033.stderr
Incorporate a stray test
[rust.git] / src / test / ui / issue-13033.stderr
1 error[E0053]: method `bar` has an incompatible type for trait
2   --> $DIR/issue-13033.rs:18: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
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0053`.