summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/issue-19883.rs
blob: 5cf422043a5850734c5574558d3665c2c07a7474 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
trait From<Src> {
    type Output;

    fn from(src: Src) -> <Self as From<Src>>::Output;
}

trait To: Sized {
    fn to<Dst: From<Self>>(self) ->
        <Dst as From<Self>>::Dst
        //~^ ERROR cannot find associated type `Dst` in trait `From`
    {
        From::from(self)
    }
}

fn main() {}