]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-35988.stderr
Rollup merge of #87529 - FabianWolff:issue-87496, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-35988.stderr
1 error[E0277]: the size for values of type `[Box<E>]` cannot be known at compilation time
2   --> $DIR/issue-35988.rs:2:7
3    |
4 LL |     V([Box<E>]),
5    |       ^^^^^^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `[Box<E>]`
8    = note: no field of an enum variant may have a dynamically sized type
9    = help: change the field's type to have a statically known size
10 help: borrowed types always have a statically known size
11    |
12 LL |     V(&[Box<E>]),
13    |       +
14 help: the `Box` type always has a statically known size and allocates its contents in the heap
15    |
16 LL |     V(Box<[Box<E>]>),
17    |       ++++        +
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.