1 error[E0643]: method `foo` has incompatible signature for trait
2 --> $DIR/impl-generic-mismatch.rs:8:12
4 LL | fn foo(&self, _: &impl Debug);
5 | ---------- declaration in trait here
7 LL | fn foo<U: Debug>(&self, _: &U) { }
8 | ^ expected `impl Trait`, found generic parameter
10 help: try removing the generic parameter and using `impl Trait` instead
12 LL | fn foo(&self, _: &impl Debug) { }
15 error[E0643]: method `bar` has incompatible signature for trait
16 --> $DIR/impl-generic-mismatch.rs:17:23
18 LL | fn bar<U: Debug>(&self, _: &U);
19 | - declaration in trait here
21 LL | fn bar(&self, _: &impl Debug) { }
22 | ^^^^^^^^^^ expected generic parameter, found `impl Trait`
24 help: try changing the `impl Trait` argument to a generic parameter
26 LL | fn bar<U: Debug>(&self, _: &U) { }
29 error[E0643]: method `hash` has incompatible signature for trait
30 --> $DIR/impl-generic-mismatch.rs:28:33
32 LL | fn hash(&self, hasher: &mut impl Hasher) {}
33 | ^^^^^^^^^^^ expected generic parameter, found `impl Trait`
35 ::: $SRC_DIR/core/src/hash/mod.rs:LL:COL
37 LL | fn hash<H: Hasher>(&self, state: &mut H);
38 | - declaration in trait here
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0643`.