]> git.lizzy.rs Git - rust.git/blob - src/test/ui/box-into-boxed-slice-fail.stderr
Auto merge of #74877 - lcnr:min_const_generics, r=oli-obk
[rust.git] / src / test / ui / box-into-boxed-slice-fail.stderr
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: required by `std::boxed::Box::<T>::into_boxed_slice`
9
10 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
11   --> $DIR/box-into-boxed-slice-fail.rs:8:13
12    |
13 LL |     let _ = Box::into_boxed_slice(boxed_slice);
14    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
15    |
16    = help: the trait `std::marker::Sized` is not implemented for `[u8]`
17    = note: slice and array elements must have `Sized` type
18
19 error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
20   --> $DIR/box-into-boxed-slice-fail.rs:12:35
21    |
22 LL |     let _ = Box::into_boxed_slice(boxed_trait);
23    |                                   ^^^^^^^^^^^ doesn't have a size known at compile-time
24    |
25    = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
26    = note: required by `std::boxed::Box::<T>::into_boxed_slice`
27
28 error[E0277]: the size for values of type `dyn std::fmt::Debug` cannot be known at compilation time
29   --> $DIR/box-into-boxed-slice-fail.rs:12:13
30    |
31 LL |     let _ = Box::into_boxed_slice(boxed_trait);
32    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
33    |
34    = help: the trait `std::marker::Sized` is not implemented for `dyn std::fmt::Debug`
35    = note: slice and array elements must have `Sized` type
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.