rust/tests/ui/traits/new-solver/nested-alias-bound.rs

21 lines
211 B
Rust
Raw Normal View History

// compile-flags: -Ztrait-solver=next
// check-pass
trait A {
type A: B;
}
trait B {
type B: C;
}
trait C {}
fn needs_c<T: C>() {}
fn test<T: A>() {
needs_c::<<T::A as B>::B>();
}
fn main() {}