fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
774 B21 linesraw
1error[E0277]: the size for values of type `[Box<E>]` cannot be known at compilation time
2  --> $DIR/issue-35988.rs:2:7
3   |
4LL |     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
10help: borrowed types always have a statically known size
11   |
12LL |     V(&[Box<E>]),
13   |       +
14help: the `Box` type always has a statically known size and allocates its contents in the heap
15   |
16LL |     V(Box<[Box<E>]>),
17   |       ++++        +
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.