1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> $DIR/box-into-boxed-slice-fail.rs:8:35
4 LL | let _ = Box::into_boxed_slice(boxed_slice);
5 | ^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `std::marker::Sized` is not implemented for `[u8]`
8 = note: required by `std::boxed::Box::<T>::into_boxed_slice`
10 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
11 --> $DIR/box-into-boxed-slice-fail.rs:8:13
13 LL | let _ = Box::into_boxed_slice(boxed_slice);
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
16 = help: the trait `std::marker::Sized` is not implemented for `[u8]`
17 = note: slice and array elements must have `Sized` type
19 error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
20 --> $DIR/box-into-boxed-slice-fail.rs:12:35
22 LL | let _ = Box::into_boxed_slice(boxed_trait);
23 | ^^^^^^^^^^^ doesn't have a size known at compile-time
25 = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
26 = note: required by `std::boxed::Box::<T>::into_boxed_slice`
28 error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
29 --> $DIR/box-into-boxed-slice-fail.rs:12:13
31 LL | let _ = Box::into_boxed_slice(boxed_trait);
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34 = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
35 = note: slice and array elements must have `Sized` type
37 error: aborting due to 4 previous errors
39 For more information about this error, try `rustc --explain E0277`.