• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
3   |
417 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
5   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6   |
7   = help: the trait `Sized` is not implemented for `[u8]`
8note: required by a bound in `AssertDstIsFromBytes`
9  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
10   |
1117 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
12   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
13   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
16  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
17   |
1817 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
19   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
20   |
21   = help: the trait `Sized` is not implemented for `[u8]`
22note: required by a bound in `AssertDstIsAsBytes`
23  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
24   |
2517 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
26   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
27   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
30  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
31   |
3217 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
33   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34   |
35   = help: the trait `Sized` is not implemented for `[u8]`
36   = note: all local variables must have a statically known size
37   = help: unsized locals are gated as an unstable feature
38   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
39
40error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
41  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
42   |
4317 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
44   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
45   |
46   = help: the trait `Sized` is not implemented for `[u8]`
47note: required by a bound in `MaxAlignsOf`
48  --> src/macro_util.rs
49   |
50   | pub union MaxAlignsOf<T, U> {
51   |                          ^ required by this bound in `MaxAlignsOf`
52   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
53
54error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
55  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
56   |
5717 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
58   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
59   |
60   = help: the trait `Sized` is not implemented for `[u8]`
61note: required by a bound in `transmute`
62  --> $RUST/core/src/intrinsics.rs
63   |
64   |     pub fn transmute<T, U>(e: T) -> U;
65   |                         ^ required by this bound in `transmute`
66   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
67
68error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
69  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
70   |
7117 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
72   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
73   |
74   = help: the trait `Sized` is not implemented for `[u8]`
75note: required by a bound in `MaxAlignsOf::<T, U>::new`
76  --> src/macro_util.rs
77   |
78   | impl<T, U> MaxAlignsOf<T, U> {
79   |         ^ required by this bound in `MaxAlignsOf::<T, U>::new`
80   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
81
82error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
83  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
84   |
8517 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
86   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
87   |
88   = help: the trait `Sized` is not implemented for `[u8]`
89note: required by a bound in `MaxAlignsOf`
90  --> src/macro_util.rs
91   |
92   | pub union MaxAlignsOf<T, U> {
93   |                          ^ required by this bound in `MaxAlignsOf`
94   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
95
96error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
97  --> tests/ui-msrv/transmute-mut-dst-unsized.rs:17:32
98   |
9917 | const DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8; 1]);
100   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
101   |
102   = help: the trait `Sized` is not implemented for `[u8]`
103note: required by a bound in `transmute_mut`
104  --> src/macro_util.rs
105   |
106   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
107   |                                                          ^^^ required by this bound in `transmute_mut`
108   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
109