// check-pass trait Foo { type Assoc: PartialEq>; } impl Foo for () { type Assoc = Wrapper; } struct Wrapper(T); impl PartialEq> for Wrapper { fn eq(&self, _other: &Wrapper) -> bool { true } } fn main() {}