]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-20005.rs
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / 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() {}