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