1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/union-unsized.rs:7:8
5 | ^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `str`
8 = note: no field of a union 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
14 help: the `Box` type always has a statically known size and allocates its contents in the heap
19 error[E0277]: the size for values of type `str` cannot be known at compilation time
20 --> $DIR/union-unsized.rs:15:8
23 | ^^^ doesn't have a size known at compile-time
25 = help: the trait `Sized` is not implemented for `str`
26 = note: no field of a union may have a dynamically sized type
27 = help: change the field's type to have a statically known size
28 help: borrowed types always have a statically known size
32 help: the `Box` type always has a statically known size and allocates its contents in the heap
37 error: aborting due to 2 previous errors
39 For more information about this error, try `rustc --explain E0277`.