|
| 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 |
| 3 | + | |
| 4 | +LL | let _ = Box::into_boxed_slice(boxed_slice); |
| 5 | + | ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 6 | + | |
| 7 | + = help: the trait `std::marker::Sized` is not implemented for `[u8]` |
| 8 | + = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
| 9 | + = note: required by `std::boxed::Box::<T>::into_boxed_slice` |
| 10 | + |
| 11 | +error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 12 | + --> $DIR/box-into-boxed-slice-fail.rs:8:13 |
| 13 | + | |
| 14 | +LL | let _ = Box::into_boxed_slice(boxed_slice); |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 16 | + | |
| 17 | + = help: the trait `std::marker::Sized` is not implemented for `[u8]` |
| 18 | + = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
| 19 | + = note: slice and array elements must have `Sized` type |
| 20 | + |
| 21 | +error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time |
| 22 | + --> $DIR/box-into-boxed-slice-fail.rs:12:35 |
| 23 | + | |
| 24 | +LL | let _ = Box::into_boxed_slice(boxed_trait); |
| 25 | + | ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 26 | + | |
| 27 | + = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug` |
| 28 | + = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
| 29 | + = note: required by `std::boxed::Box::<T>::into_boxed_slice` |
| 30 | + |
| 31 | +error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time |
| 32 | + --> $DIR/box-into-boxed-slice-fail.rs:12:13 |
| 33 | + | |
| 34 | +LL | let _ = Box::into_boxed_slice(boxed_trait); |
| 35 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time |
| 36 | + | |
| 37 | + = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug` |
| 38 | + = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait> |
| 39 | + = note: slice and array elements must have `Sized` type |
| 40 | + |
| 41 | +error: aborting due to 4 previous errors |
| 42 | + |
| 43 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments