2 // Check that we do not get an error when you use `<Self as Get>::Value` in
3 // the trait definition if there is no default method and for every impl,
4 // `Self` does implement `Get`.
6 // See also tests associated-types-no-suitable-supertrait
7 // and associated-types-no-suitable-supertrait-2, which show how small
8 // variants of the code below can fail.
15 fn okay<U:Get>(&self, foo: U, bar: <Self as Get>::Value)
28 fn okay<U:Get>(&self, _foo: U, _bar: <Self as Get>::Value) { }
32 fn okay<U:Get>(&self, _foo: U, _bar: <Self as Get>::Value) { }