1 2 3 4 5 6 7 8 9 10
trait Trait { type A; type B; } fn foo<T: Trait<A = T::B>>() { } //~^ ERROR cycle detected //~| ERROR associated type `B` not found for `T` fn main() { }