summary refs log tree commit diff
path: root/src/test/ui/issues/issue-21177.rs
blob: 9d153696b885e2f11dbf46a29b84004828a7039f (plain)
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() { }