fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `str` cannot be known at compilation time 2 --> $DIR/union-unsized.rs:5:8 3 | 4LL | a: str, 5 | ^^^ doesn't have a size known at compile-time 6 | 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 10help: borrowed types always have a statically known size 11 | 12LL | a: &str, 13 | + 14help: the `Box` type always has a statically known size and allocates its contents in the heap 15 | 16LL | a: Box<str>, 17 | ++++ + 18 19error[E0277]: the size for values of type `str` cannot be known at compilation time 20 --> $DIR/union-unsized.rs:13:8 21 | 22LL | b: str, 23 | ^^^ doesn't have a size known at compile-time 24 | 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 28help: borrowed types always have a statically known size 29 | 30LL | b: &str, 31 | + 32help: the `Box` type always has a statically known size and allocates its contents in the heap 33 | 34LL | b: Box<str>, 35 | ++++ + 36 37error: aborting due to 2 previous errors 38 39For more information about this error, try `rustc --explain E0277`.