]>
Commit | Line | Data |
---|---|---|
f9f354fc | 1 | error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
29967ef6 | 2 | --> $DIR/into-boxed-slice-fail.rs:7:35 |
f9f354fc XL |
3 | | |
4 | LL | let _ = Box::into_boxed_slice(boxed_slice); | |
5 | | ^^^^^^^^^^^ doesn't have a size known at compile-time | |
6 | | | |
1b1a35ee | 7 | = help: the trait `Sized` is not implemented for `[u8]` |
136023e0 XL |
8 | note: required by `Box::<T, A>::into_boxed_slice` |
9 | --> $SRC_DIR/alloc/src/boxed.rs:LL:COL | |
10 | | | |
11 | LL | pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { | |
12 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
f9f354fc XL |
13 | |
14 | error[E0277]: the size for values of type `[u8]` cannot be known at compilation time | |
29967ef6 | 15 | --> $DIR/into-boxed-slice-fail.rs:7:13 |
f9f354fc XL |
16 | | |
17 | LL | let _ = Box::into_boxed_slice(boxed_slice); | |
18 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
19 | | | |
1b1a35ee | 20 | = help: the trait `Sized` is not implemented for `[u8]` |
f9f354fc XL |
21 | = note: slice and array elements must have `Sized` type |
22 | ||
1b1a35ee | 23 | error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time |
29967ef6 | 24 | --> $DIR/into-boxed-slice-fail.rs:11:35 |
f9f354fc XL |
25 | | |
26 | LL | let _ = Box::into_boxed_slice(boxed_trait); | |
27 | | ^^^^^^^^^^^ doesn't have a size known at compile-time | |
28 | | | |
1b1a35ee | 29 | = help: the trait `Sized` is not implemented for `dyn Debug` |
136023e0 XL |
30 | note: required by `Box::<T, A>::into_boxed_slice` |
31 | --> $SRC_DIR/alloc/src/boxed.rs:LL:COL | |
32 | | | |
33 | LL | pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { | |
34 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
f9f354fc | 35 | |
1b1a35ee | 36 | error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time |
29967ef6 | 37 | --> $DIR/into-boxed-slice-fail.rs:11:13 |
f9f354fc XL |
38 | | |
39 | LL | let _ = Box::into_boxed_slice(boxed_trait); | |
40 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time | |
41 | | | |
1b1a35ee | 42 | = help: the trait `Sized` is not implemented for `dyn Debug` |
f9f354fc XL |
43 | = note: slice and array elements must have `Sized` type |
44 | ||
45 | error: aborting due to 4 previous errors | |
46 | ||
47 | For more information about this error, try `rustc --explain E0277`. |