• 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-src-dst-unsized.rs:17:36
3   |
417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
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 `AssertSrcIsFromBytes`
9  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
10   |
1117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
12   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
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-src-dst-unsized.rs:17:36
17   |
1817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
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 `AssertSrcIsFromBytes`
23  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
24   |
2517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
26   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
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-src-dst-unsized.rs:17:36
31   |
3217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
33   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
34   |
35   = help: the trait `Sized` is not implemented for `[u8]`
36note: required by a bound in `AssertSrcIsAsBytes`
37  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
38   |
3917 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
40   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
41   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
44  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
45   |
4617 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
47   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
48   |
49   = help: the trait `Sized` is not implemented for `[u8]`
50note: required by a bound in `AssertSrcIsAsBytes`
51  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
52   |
5317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
54   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
55   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
56
57error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
58  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
59   |
6017 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
61   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
62   |
63   = help: the trait `Sized` is not implemented for `[u8]`
64note: required by a bound in `AssertDstIsFromBytes`
65  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
66   |
6717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
68   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
69   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
70
71error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
72  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
73   |
7417 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
75   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
76   |
77   = help: the trait `Sized` is not implemented for `[u8]`
78note: required by a bound in `AssertDstIsAsBytes`
79  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
80   |
8117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
82   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
83   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
84
85error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
86  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
87   |
8817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
89   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
90   |
91   = help: the trait `Sized` is not implemented for `[u8]`
92   = note: all local variables must have a statically known size
93   = help: unsized locals are gated as an unstable feature
94   = note: this error originates in the macro `transmute_mut` (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-src-dst-unsized.rs:17:36
98   |
9917 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
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`
104  --> $RUST/core/src/intrinsics.rs
105   |
106   |     pub fn transmute<T, U>(e: T) -> U;
107   |                      ^ required by this bound in `transmute`
108   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
109
110error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
111  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
112   |
11317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
114   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
115   |
116   = help: the trait `Sized` is not implemented for `[u8]`
117note: required by a bound in `AlignOf::<T>::into_t`
118  --> src/macro_util.rs
119   |
120   | impl<T> AlignOf<T> {
121   |      ^ required by this bound in `AlignOf::<T>::into_t`
122   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
123
124error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
125  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
126   |
12717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
128   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
129   |
130   = help: the trait `Sized` is not implemented for `[u8]`
131   = note: the left-hand-side of an assignment must have a statically known size
132   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
133
134error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
135  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
136   |
13717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
138   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
139   |
140   = help: the trait `Sized` is not implemented for `[u8]`
141note: required by a bound in `AlignOf`
142  --> src/macro_util.rs
143   |
144   | pub struct AlignOf<T> {
145   |                    ^ required by this bound in `AlignOf`
146   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
147
148error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
149  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
150   |
15117 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
152   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
153   |
154   = help: the trait `Sized` is not implemented for `[u8]`
155note: required by a bound in `MaxAlignsOf::<T, U>::new`
156  --> src/macro_util.rs
157   |
158   | impl<T, U> MaxAlignsOf<T, U> {
159   |      ^ required by this bound in `MaxAlignsOf::<T, U>::new`
160   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
161
162error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
163  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
164   |
16517 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
166   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
167   |
168   = help: the trait `Sized` is not implemented for `[u8]`
169note: required by a bound in `MaxAlignsOf`
170  --> src/macro_util.rs
171   |
172   | pub union MaxAlignsOf<T, U> {
173   |                       ^ required by this bound in `MaxAlignsOf`
174   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
175
176error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
177  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
178   |
17917 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
180   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
181   |
182   = help: the trait `Sized` is not implemented for `[u8]`
183note: required by a bound in `MaxAlignsOf`
184  --> src/macro_util.rs
185   |
186   | pub union MaxAlignsOf<T, U> {
187   |                       ^ required by this bound in `MaxAlignsOf`
188   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
189
190error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
191  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
192   |
19317 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
194   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
195   |
196   = help: the trait `Sized` is not implemented for `[u8]`
197note: required by a bound in `AlignOf`
198  --> src/macro_util.rs
199   |
200   | pub struct AlignOf<T> {
201   |                    ^ required by this bound in `AlignOf`
202   = note: this error originates in the macro `$crate::assert_align_gt_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
203
204error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
205  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
206   |
20717 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
208   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
209   |
210   = help: the trait `Sized` is not implemented for `[u8]`
211   = note: all local variables must have a statically known size
212   = help: unsized locals are gated as an unstable feature
213   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
214
215error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
216  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
217   |
21817 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
219   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
220   |
221   = help: the trait `Sized` is not implemented for `[u8]`
222note: required by a bound in `transmute_mut`
223  --> src/macro_util.rs
224   |
225   | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
226   |                                               ^^^ required by this bound in `transmute_mut`
227   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
228
229error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
230  --> tests/ui-msrv/transmute-mut-src-dst-unsized.rs:17:36
231   |
23217 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
233   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
234   |
235   = help: the trait `Sized` is not implemented for `[u8]`
236   = note: all function arguments must have a statically known size
237   = note: this error originates in the macro `$crate::assert_size_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
238