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

17 lines
302 B
Rust

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