]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-20005.rs
New upstream version 1.43.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-20005.rs
CommitLineData
1a4d82fc
JJ
1trait From<Src> {
2 type Result;
3
4 fn from(src: Src) -> Self::Result;
223e47cc
LB
5}
6
1a4d82fc 7trait To {
74b04a01 8 fn to<Dst>(
9cc50fc6 9 self
74b04a01 10 ) -> <Dst as From<Self>>::Result where Dst: From<Self> { //~ ERROR the size for values of type
9cc50fc6 11 From::from(self)
223e47cc 12 }
223e47cc
LB
13}
14
15fn main() {}