]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: the size for values of type `[isize]` cannot be known at compilation time |
0731742a | 2 | --> $DIR/dst-bad-deep.rs:13:34 |
b7449926 XL |
3 | | |
4 | LL | let h: &Fat<Fat<[isize]>> = &Fat { ptr: *g }; | |
5 | | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
6 | | | |
1b1a35ee | 7 | = help: within `Fat<Fat<[isize]>>`, the trait `Sized` is not implemented for `[isize]` |
cdc7bbd5 XL |
8 | note: required because it appears within the type `Fat<[isize]>` |
9 | --> $DIR/dst-bad-deep.rs:6:8 | |
10 | | | |
cdc7bbd5 XL |
11 | LL | struct Fat<T: ?Sized> { |
12 | | ^^^ | |
b7449926 XL |
13 | = note: structs must have a statically known size to be initialized |
14 | ||
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |