4 fn foo(&self, _: &impl Debug);
8 fn foo<U: Debug>(&self, _: &U) { }
9 //~^ Error method `foo` has incompatible signature for trait
13 fn bar<U: Debug>(&self, _: &U);
17 fn bar(&self, _: &impl Debug) { }
18 //~^ Error method `bar` has incompatible signature for trait
22 fn baz<U: Debug, T: Debug>(&self, _: &U, _: &T);
26 fn baz<T: Debug>(&self, _: &impl Debug, _: &T) { }
27 //~^ Error method `baz` has incompatible signature for trait
30 // With non-local trait (#49841):
32 use std::hash::{Hash, Hasher};
37 fn hash(&self, hasher: &mut impl Hasher) {}
38 //~^ Error method `hash` has incompatible signature for trait