]>
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 XL |
7 | LL | ) -> <Dst as From<Self>>::Result where Dst: From<Self> { |
8 | | ^^^^^^^^^^- help: consider further restricting `Self`: `, Self: std::marker::Sized` | |
9 | | | | |
10 | | doesn't have a size known at compile-time | |
8faf50e0 XL |
11 | | |
12 | = help: the trait `std::marker::Sized` is not implemented for `Self` | |
0731742a | 13 | = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
8faf50e0 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |