1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2 --> $DIR/dst-rvalue.rs:4:33
4 LL | let _x: Box<str> = Box::new(*"hello world");
5 | -------- ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 | required by a bound introduced by this call
9 = help: the trait `Sized` is not implemented for `str`
10 note: required by a bound in `Box::<T>::new`
11 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
13 error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
14 --> $DIR/dst-rvalue.rs:8:37
16 LL | let _x: Box<[isize]> = Box::new(*array);
17 | -------- ^^^^^^ doesn't have a size known at compile-time
19 | required by a bound introduced by this call
21 = help: the trait `Sized` is not implemented for `[isize]`
22 note: required by a bound in `Box::<T>::new`
23 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0277`.