blob: 5cf422043a5850734c5574558d3665c2c07a7474 [file] [log] [blame]
trait From<Src> {
type Output;
fn from(src: Src) -> <Self as From<Src>>::Output;
}
trait To: Sized {
fn to<Dst: From<Self>>(self) ->
<Dst as From<Self>>::Dst
//~^ ERROR cannot find associated type `Dst` in trait `From`
{
From::from(self)
}
}
fn main() {}