]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-35988.stderr
a137549693844b8169ee4fc77b5a88efdc6b836e
[rust.git] / src / test / ui / issues / issue-35988.stderr
1 error[E0277]: the size for values of type `[std::boxed::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 `std::marker::Sized` is not implemented for `[std::boxed::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: heap allocated types always have a statically known size
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`.