rust/tests/ui/associated-types/wf-cycle-2.rs

19 lines
211 B
Rust

//@ 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() {}