]> git.proxmox.com Git - rustc.git/blame - src/test/ui/box/into-boxed-slice-fail.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / box / into-boxed-slice-fail.stderr
CommitLineData
f9f354fc 1error[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 |
4LL | 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
8note: required by `Box::<T, A>::into_boxed_slice`
9 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
10 |
11LL | pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> {
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f9f354fc
XL
13
14error[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 |
17LL | 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 23error[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 |
26LL | 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
30note: required by `Box::<T, A>::into_boxed_slice`
31 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
32 |
33LL | pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> {
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f9f354fc 35
1b1a35ee 36error[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 |
39LL | 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
45error: aborting due to 4 previous errors
46
47For more information about this error, try `rustc --explain E0277`.