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