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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
207 B
Rust
Raw Normal View History

2023-12-14 06:11:28 -06:00
//@ compile-flags: -Znext-solver
//@ 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() {}