2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-12 09:29:52 -06:00
|
|
|
trait Base {
|
|
|
|
fn dummy(&self) { }
|
|
|
|
}
|
2015-01-01 10:16:44 -06:00
|
|
|
trait AssocA {
|
|
|
|
type X: Base;
|
2015-02-12 09:29:52 -06:00
|
|
|
fn dummy(&self) { }
|
2015-01-01 10:16:44 -06:00
|
|
|
}
|
|
|
|
trait AssocB {
|
|
|
|
type Y: Base;
|
2015-02-12 09:29:52 -06:00
|
|
|
fn dummy(&self) { }
|
2015-01-01 10:16:44 -06:00
|
|
|
}
|
|
|
|
impl<T: AssocA> AssocB for T {
|
|
|
|
type Y = <T as AssocA>::X;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|