1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> $DIR/into-boxed-slice-fail.rs:7:35
4 LL | let _ = Box::into_boxed_slice(boxed_slice);
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 `[u8]`
10 note: required by a bound in `Box::<T, A>::into_boxed_slice`
11 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
13 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
14 --> $DIR/into-boxed-slice-fail.rs:7:13
16 LL | let _ = Box::into_boxed_slice(boxed_slice);
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
19 = help: the trait `Sized` is not implemented for `[u8]`
20 = note: slice and array elements must have `Sized` type
22 error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
23 --> $DIR/into-boxed-slice-fail.rs:11:35
25 LL | let _ = Box::into_boxed_slice(boxed_trait);
26 | --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time
28 | required by a bound introduced by this call
30 = help: the trait `Sized` is not implemented for `dyn Debug`
31 note: required by a bound in `Box::<T, A>::into_boxed_slice`
32 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
34 error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
35 --> $DIR/into-boxed-slice-fail.rs:11:13
37 LL | let _ = Box::into_boxed_slice(boxed_trait);
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
40 = help: the trait `Sized` is not implemented for `dyn Debug`
41 = note: slice and array elements must have `Sized` type
43 error: aborting due to 4 previous errors
45 For more information about this error, try `rustc --explain E0277`.