2020-04-22 09:23:20 -05:00
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
2020-10-06 09:37:23 -05:00
|
|
|
--> $DIR/into-boxed-slice-fail.rs:7:35
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
|
|
|
LL | let _ = Box::into_boxed_slice(boxed_slice);
|
2021-09-07 06:30:53 -05:00
|
|
|
| --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
2021-10-05 18:04:09 -05:00
|
|
|
note: required by a bound in `Box::<T, A>::into_boxed_slice`
|
2021-07-17 13:13:50 -05:00
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
|
2020-10-06 09:37:23 -05:00
|
|
|
--> $DIR/into-boxed-slice-fail.rs:7:13
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
|
|
|
LL | let _ = Box::into_boxed_slice(boxed_slice);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `[u8]`
|
2020-04-22 09:23:20 -05:00
|
|
|
= note: slice and array elements must have `Sized` type
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
|
2020-10-06 09:37:23 -05:00
|
|
|
--> $DIR/into-boxed-slice-fail.rs:11:35
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
|
|
|
LL | let _ = Box::into_boxed_slice(boxed_trait);
|
2021-09-07 06:30:53 -05:00
|
|
|
| --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `dyn Debug`
|
2021-10-05 18:04:09 -05:00
|
|
|
note: required by a bound in `Box::<T, A>::into_boxed_slice`
|
2021-07-17 13:13:50 -05:00
|
|
|
--> $SRC_DIR/alloc/src/boxed.rs:LL:COL
|
2020-04-22 09:23:20 -05:00
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
|
2020-10-06 09:37:23 -05:00
|
|
|
--> $DIR/into-boxed-slice-fail.rs:11:13
|
2020-04-22 09:23:20 -05:00
|
|
|
|
|
|
|
|
LL | let _ = Box::into_boxed_slice(boxed_trait);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= help: the trait `Sized` is not implemented for `dyn Debug`
|
2020-04-22 09:23:20 -05:00
|
|
|
= note: slice and array elements must have `Sized` type
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|