1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/dst-rvalue.rs:6:28
4 LL | let _x: Box<str> = box *"hello world";
5 | ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `Sized` is not implemented for `str`
8 = note: the type of a box expression must have a statically known size
10 error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
11 --> $DIR/dst-rvalue.rs:10:32
13 LL | let _x: Box<[isize]> = box *array;
14 | ^^^^^^ doesn't have a size known at compile-time
16 = help: the trait `Sized` is not implemented for `[isize]`
17 = note: the type of a box expression must have a statically known size
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0277`.