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