7 fn foo(&self, _: &impl Debug);
11 fn foo<U: Debug>(&self, _: &U) { }
12 //~^ Error method `foo` has incompatible signature for trait
16 fn bar<U: Debug>(&self, _: &U);
20 fn bar(&self, _: &impl Debug) { }
21 //~^ Error method `bar` has incompatible signature for trait
24 // With non-local trait (#49841):
26 use std::hash::{Hash, Hasher};
31 fn hash(&self, hasher: &mut impl Hasher) {}
32 //~^ Error method `hash` has incompatible signature for trait