]> git.lizzy.rs Git - rust.git/blob - tests/ui/associated-types/issue-20005.stderr
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / associated-types / issue-20005.stderr
1 error[E0277]: the size for values of type `Self` cannot be known at compilation time
2   --> $DIR/issue-20005.rs:10:49
3    |
4 LL |     ) -> <Dst as From<Self>>::Result where Dst: From<Self> {
5    |                                                 ^^^^^^^^^^ doesn't have a size known at compile-time
6    |
7 note: required by a bound in `From`
8   --> $DIR/issue-20005.rs:1:12
9    |
10 LL | trait From<Src> {
11    |            ^^^ required by this bound in `From`
12 help: consider further restricting `Self`
13    |
14 LL |     ) -> <Dst as From<Self>>::Result where Dst: From<Self>, Self: Sized {
15    |                                                           +++++++++++++
16 help: consider relaxing the implicit `Sized` restriction
17    |
18 LL | trait From<Src: ?Sized> {
19    |               ++++++++
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0277`.