rust/src/test/ui/issues/issue-19479.rs
2018-12-25 21:08:33 -07:00

20 lines
284 B
Rust

// compile-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() {}