mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
20 lines
284 B
Rust
20 lines
284 B
Rust
//@ check-pass
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
trait Base {
|
|
fn dummy(&self) { }
|
|
}
|
|
trait AssocA {
|
|
type X: Base;
|
|
fn dummy(&self) { }
|
|
}
|
|
trait AssocB {
|
|
type Y: Base;
|
|
fn dummy(&self) { }
|
|
}
|
|
impl<T: AssocA> AssocB for T {
|
|
type Y = <T as AssocA>::X;
|
|
}
|
|
|
|
fn main() {}
|