about summary refs log tree commit diff
path: root/tests/ui/associated-types/issue-20005.rs
blob: e6e83d92061c37317dda5d41b5e30293762d7f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait From<Src> {
    type Result;

    fn from(src: Src) -> Self::Result;
}

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

fn main() {}