1 // Test for issue #57362, ensuring that the self ty is shown in cases of higher-ranked lifetimes
2 // conflicts: the `expected` and `found` trait refs would otherwise be printed the same, leading
3 // to confusing notes such as:
4 // = note: expected type `Trait`
12 impl<T> Trait for fn(&T) {
19 let a: fn(_) = |_: &u8| {};
20 a.f(); //~ ERROR no method named `f`