1 error[E0053]: method `foo` has an incompatible type for trait
2 --> $DIR/trait-impl-fn-incompatibility.rs:9:15
4 LL | fn foo(x: i16) { }
7 | expected `u16`, found `i16`
8 | help: change the parameter type to match the trait: `u16`
11 --> $DIR/trait-impl-fn-incompatibility.rs:2:15
15 = note: expected signature `fn(u16)`
16 found signature `fn(i16)`
18 error[E0053]: method `bar` has an incompatible type for trait
19 --> $DIR/trait-impl-fn-incompatibility.rs:10:28
21 LL | fn bar(&mut self, bar: &Bar) { }
24 | types differ in mutability
25 | help: change the parameter type to match the trait: `&mut Bar`
28 --> $DIR/trait-impl-fn-incompatibility.rs:3:28
30 LL | fn bar(&mut self, bar: &mut Bar);
32 = note: expected signature `fn(&mut Bar, &mut Bar)`
33 found signature `fn(&mut Bar, &Bar)`
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0053`.