trait T { type A: S = ()>; // Just one erroneous equality constraint //~^ ERROR associated item constraints are not allowed here //~| ERROR associated item constraints are not allowed here } trait T2 { type A: S = ()>; // More than one erroneous equality constraints //~^ ERROR associated item constraints are not allowed here //~| ERROR associated item constraints are not allowed here } trait Q {} trait S { type C: Q; } fn main() {}