]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-19883.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / issue-19883.rs
1 trait From<Src> {
2     type Output;
3
4     fn from(src: Src) -> <Self as From<Src>>::Output;
5 }
6
7 trait To: Sized {
8     fn to<Dst: From<Self>>(self) ->
9         <Dst as From<Self>>::Dst
10         //~^ ERROR cannot find associated type `Dst` in trait `From`
11     {
12         From::from(self)
13     }
14 }
15
16 fn main() {}