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

14 lines
123 B
Rust

//@ check-pass
trait A {
type U: Copy;
}
trait B where
<Self::V as A>::U: Copy,
{
type V: A;
}
fn main() {}