trait From { type Result; fn from(src: Src) -> Self::Result; } trait To { fn to( //~ ERROR the size for values of type self ) -> >::Result where Dst: From { From::from(self) } } fn main() {}