]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0277]: the size for values of type `Self` cannot be known at compilation time |
74b04a01 | 2 | --> $DIR/issue-20005.rs:10:49 |
8faf50e0 | 3 | | |
74b04a01 | 4 | LL | trait From<Src> { |
ba9703b0 | 5 | | --- required by this bound in `From` |
e1599b0c | 6 | ... |
74b04a01 | 7 | LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self> { |
f9f354fc | 8 | | ^^^^^^^^^^ doesn't have a size known at compile-time |
8faf50e0 | 9 | | |
f9f354fc XL |
10 | help: consider further restricting `Self` |
11 | | | |
1b1a35ee XL |
12 | LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self>, Self: Sized { |
13 | | ^^^^^^^^^^^^^ | |
f9f354fc XL |
14 | help: consider relaxing the implicit `Sized` restriction |
15 | | | |
16 | LL | trait From<Src: ?Sized> { | |
17 | | ^^^^^^^^ | |
8faf50e0 XL |
18 | |
19 | error: aborting due to previous error | |
20 | ||
21 | For more information about this error, try `rustc --explain E0277`. |