1 error[E0053]: method `foo` has an incompatible type for trait
7 LL | fn foo(x: i16) { }
10 | expected `u16`, found `i16`
11 | help: change the parameter type to match the trait: `u16`
13 = note: expected fn pointer `fn(u16)`
14 found fn pointer `fn(i16)`
16 error[E0053]: method `bar` has an incompatible type for trait
17 --> $DIR/E0053.rs:11:12
22 LL | fn bar(&mut self) { }
25 | types differ in mutability
26 | help: change the self-receiver type to match the trait: `self: &Bar`
28 = note: expected fn pointer `fn(&Bar)`
29 found fn pointer `fn(&mut Bar)`
31 error: aborting due to 2 previous errors
33 For more information about this error, try `rustc --explain E0053`.