]> git.lizzy.rs Git - rust.git/blob - src/test/ui/box/into-boxed-slice-fail.stderr
skip if val has ecaping bound vars
[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/into-boxed-slice-fail.rs:7:35
3    |
4 LL |     let _ = Box::into_boxed_slice(boxed_slice);
5    |             --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time
6    |             |
7    |             required by a bound introduced by this call
8    |
9    = help: the trait `Sized` is not implemented for `[u8]`
10 note: required by a bound in `Box::<T, A>::into_boxed_slice`
11   --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
12    |
13 LL | impl<T, A: Allocator> Box<T, A> {
14    |      ^ required by this bound in `Box::<T, A>::into_boxed_slice`
15
16 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
17   --> $DIR/into-boxed-slice-fail.rs:7:13
18    |
19 LL |     let _ = Box::into_boxed_slice(boxed_slice);
20    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
21    |
22    = help: the trait `Sized` is not implemented for `[u8]`
23    = note: slice and array elements must have `Sized` type
24
25 error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
26   --> $DIR/into-boxed-slice-fail.rs:11:35
27    |
28 LL |     let _ = Box::into_boxed_slice(boxed_trait);
29    |             --------------------- ^^^^^^^^^^^ doesn't have a size known at compile-time
30    |             |
31    |             required by a bound introduced by this call
32    |
33    = help: the trait `Sized` is not implemented for `dyn Debug`
34 note: required by a bound in `Box::<T, A>::into_boxed_slice`
35   --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
36    |
37 LL | impl<T, A: Allocator> Box<T, A> {
38    |      ^ required by this bound in `Box::<T, A>::into_boxed_slice`
39
40 error[E0277]: the size for values of type `dyn Debug` cannot be known at compilation time
41   --> $DIR/into-boxed-slice-fail.rs:11:13
42    |
43 LL |     let _ = Box::into_boxed_slice(boxed_trait);
44    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
45    |
46    = help: the trait `Sized` is not implemented for `dyn Debug`
47    = note: slice and array elements must have `Sized` type
48
49 error: aborting due to 4 previous errors
50
51 For more information about this error, try `rustc --explain E0277`.