// check-fail #![feature(associated_type_defaults)] trait Family { // Fine, i32: PartialEq type Member<'a>: for<'b> PartialEq> = i32; } struct Foo; trait Family2 { // Not fine, not Foo: PartialEq type Member<'a>: for<'b> PartialEq> = Foo; //~^ ERROR can't compare } fn main() {}