Debian Codegraph @

third_party/rust/zerocopy/tests/ui-stable/transmute-mut-src-dst-unsized.stderr

raw
1 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
2 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
3 |
4 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 | |
7 | doesn't have a size known at compile-time
8 | required by a bound introduced by this call
9 |
10 = help: the trait `Sized` is not implemented for `[u8]`
11 note: required by a bound in `AssertSrcIsFromBytes`
12 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
13 |
14 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
16 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
19 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
20 |
21 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
23 |
24 = help: the trait `Sized` is not implemented for `[u8]`
25 note: required by a bound in `AssertSrcIsFromBytes`
26 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
27 |
28 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
30 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
31
32 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
33 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
34 |
35 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | |
38 | doesn't have a size known at compile-time
39 | required by a bound introduced by this call
40 |
41 = help: the trait `Sized` is not implemented for `[u8]`
42 note: required by a bound in `AssertSrcIsAsBytes`
43 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
44 |
45 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
47 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
48
49 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
50 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
51 |
52 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
54 |
55 = help: the trait `Sized` is not implemented for `[u8]`
56 note: required by a bound in `AssertSrcIsAsBytes`
57 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
58 |
59 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
60 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsAsBytes`
61 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
62
63 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
64 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
65 |
66 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
67 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68 | |
69 | doesn't have a size known at compile-time
70 | required by a bound introduced by this call
71 |
72 = help: the trait `Sized` is not implemented for `[u8]`
73 note: required by a bound in `AssertDstIsFromBytes`
74 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
75 |
76 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
78 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
79
80 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
81 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
82 |
83 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
84 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85 | |
86 | doesn't have a size known at compile-time
87 | required by a bound introduced by this call
88 |
89 = help: the trait `Sized` is not implemented for `[u8]`
90 note: required by a bound in `AssertDstIsAsBytes`
91 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
92 |
93 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsAsBytes`
95 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
96
97 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
98 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
99 |
100 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
102 |
103 = help: the trait `Sized` is not implemented for `[u8]`
104 = note: all local variables must have a statically known size
105 = help: unsized locals are gated as an unstable feature
106 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
107
108 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
109 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
110 |
111 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
112 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113 | |
114 | doesn't have a size known at compile-time
115 | required by a bound introduced by this call
116 |
117 = help: the trait `Sized` is not implemented for `[u8]`
118 note: required by a bound in `transmute`
119 --> $RUST/core/src/intrinsics.rs
120 |
121 | pub fn transmute<Src, Dst>(src: Src) -> Dst;
122 | ^^^ required by this bound in `transmute`
123 = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
124
125 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
126 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
127 |
128 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
130 |
131 = help: the trait `Sized` is not implemented for `[u8]`
132 note: required by a bound in `AlignOf::<T>::into_t`
133 --> src/macro_util.rs
134 |
135 | impl<T> AlignOf<T> {
136 | ^ required by this bound in `AlignOf::<T>::into_t`
137 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
138 | pub fn into_t(self) -> T {
139 | ------ required by a bound in this associated function
140 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
141
142 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
143 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
144 |
145 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
147 |
148 = help: the trait `Sized` is not implemented for `[u8]`
149 = note: the left-hand-side of an assignment must have a statically known size
150 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
151
152 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
153 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
154 |
155 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
157 |
158 = help: the trait `Sized` is not implemented for `[u8]`
159 note: required by a bound in `AlignOf`
160 --> src/macro_util.rs
161 |
162 | pub struct AlignOf<T> {
163 | ^ required by this bound in `AlignOf`
164 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
165
166 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
167 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
168 |
169 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
170 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171 | |
172 | doesn't have a size known at compile-time
173 | required by a bound introduced by this call
174 |
175 = help: the trait `Sized` is not implemented for `[u8]`
176 note: required by a bound in `MaxAlignsOf::<T, U>::new`
177 --> src/macro_util.rs
178 |
179 | impl<T, U> MaxAlignsOf<T, U> {
180 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
181 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
182 | pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
183 | --- required by a bound in this associated function
184 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
185
186 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
187 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
188 |
189 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
190 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
191 |
192 = help: the trait `Sized` is not implemented for `[u8]`
193 note: required by a bound in `MaxAlignsOf`
194 --> src/macro_util.rs
195 |
196 | pub union MaxAlignsOf<T, U> {
197 | ^ required by this bound in `MaxAlignsOf`
198 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
199
200 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
201 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
202 |
203 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
204 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
205 |
206 = help: the trait `Sized` is not implemented for `[u8]`
207 note: required by a bound in `AlignOf`
208 --> src/macro_util.rs
209 |
210 | pub struct AlignOf<T> {
211 | ^ required by this bound in `AlignOf`
212 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
213
214 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
215 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
216 |
217 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
218 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
219 |
220 = help: the trait `Sized` is not implemented for `[u8]`
221 = note: all local variables must have a statically known size
222 = help: unsized locals are gated as an unstable feature
223 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
224
225 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
226 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
227 |
228 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
229 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
230 |
231 = help: the trait `Sized` is not implemented for `[u8]`
232 note: required by a bound in `transmute`
233 --> $RUST/core/src/intrinsics.rs
234 |
235 | pub fn transmute<Src, Dst>(src: Src) -> Dst;
236 | ^^^ required by this bound in `transmute`
237 = note: this error originates in the macro `$crate::assert_size_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
238
239 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
240 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
241 |
242 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
243 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
244 | |
245 | doesn't have a size known at compile-time
246 | required by a bound introduced by this call
247 |
248 = help: the trait `Sized` is not implemented for `[u8]`
249 note: required by a bound in `MaxAlignsOf::<T, U>::new`
250 --> src/macro_util.rs
251 |
252 | impl<T, U> MaxAlignsOf<T, U> {
253 | ^ required by this bound in `MaxAlignsOf::<T, U>::new`
254 | #[inline(never)] // Make `missing_inline_in_public_items` happy.
255 | pub fn new(_t: T, _u: U) -> MaxAlignsOf<T, U> {
256 | --- required by a bound in this associated function
257 = note: this error originates in the macro `$crate::assert_align_gt_eq` which comes from the expansion of the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
258
259 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
260 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
261 |
262 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
263 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
264 | |
265 | doesn't have a size known at compile-time
266 | required by a bound introduced by this call
267 |
268 = help: the trait `Sized` is not implemented for `[u8]`
269 note: required by a bound in `transmute_mut`
270 --> src/macro_util.rs
271 |
272 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
273 | ^^^ required by this bound in `transmute_mut`
274 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
275
276 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
277 --> tests/ui-stable/transmute-mut-src-dst-unsized.rs:17:36
278 |
279 17 | const SRC_DST_UNSIZED: &mut [u8] = transmute_mut!(&mut [0u8][..]);
280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
281 |
282 = help: the trait `Sized` is not implemented for `[u8]`
283 note: required by a bound in `transmute_mut`
284 --> src/macro_util.rs
285 |
286 | pub unsafe fn transmute_mut<'dst, 'src: 'dst, Src: 'src, Dst: 'dst>(
287 | ^^^ required by this bound in `transmute_mut`
288 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)