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

16 lines
265 B
Rust

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