rust/src/test/ui/issues/issue-20005.rs
2020-02-02 11:53:09 -08:00

16 lines
264 B
Rust

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