]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/issue-20005.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / 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 | trait From<Src> {
5    |            --- required by this bound in `From`
6 ...
7 LL |     ) -> <Dst as From<Self>>::Result where Dst: From<Self> {
8    |                                                 ^^^^^^^^^^ doesn't have a size known at compile-time
9    |
10 help: consider further restricting `Self`
11    |
12 LL |     ) -> <Dst as From<Self>>::Result where Dst: From<Self>, Self: Sized {
13    |                                                           ^^^^^^^^^^^^^
14 help: consider relaxing the implicit `Sized` restriction
15    |
16 LL | trait From<Src: ?Sized> {
17    |               ^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.