3 // pretty-expanded FIXME #23616
11 impl<A> T0 for S<A> { type O = A; }
14 // this looks okay but as we see below, `f` is unusable
15 fn m0<F: Fn(<Self as T0>::O) -> bool>(self, f: F) -> bool;
18 // complains about the bounds on F here not being required by the trait
20 fn m0<F: Fn(A) -> bool>(self, f: F) -> bool { f(self.0) }
23 // // complains about mismatched types: <S<A> as T0>::O vs. A
24 // impl<A> T1 for S<A>
26 // fn m0<F: Fn(<Self as T0>::O) -> bool>(self, f: F) -> bool { f(self.0) }