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