trait T { type A: S = ()>; //~^ 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() {}