mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
21 lines
211 B
Rust
21 lines
211 B
Rust
// 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() {}
|