summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/wf-cycle-2.rs
blob: d7467ac22371f53bcc4fbcc2127a89ddb5286be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass

trait IntoIt {
    type Item;
}

impl<I> IntoIt for I {
    type Item = ();
}

trait BaseGraph
where
    <Self::VertexIter as IntoIt>::Item: Sized,
{
    type VertexIter: IntoIt;
}

fn main() {}