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