]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20005.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.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>(  //~ ERROR the size for values of type
9         self
10     ) -> <Dst as From<Self>>::Result where Dst: From<Self> {
11         From::from(self)
12     }
13 }
14
15 fn main() {}