summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-21177.rs
blob: 258e362d1317c5ee38b7f0bb66d1320182fac0d7 (plain)
1
2
3
4
5
6
7
8
9
trait Trait {
    type A;
    type B;
}

fn foo<T: Trait<A = T::B>>() { }
//~^ ERROR cycle detected

fn main() { }