Debian Codegraph @

debian/rust-vendor/zerocopy-derive/tests/ui/struct.stable.stderr

raw
1 error: this conflicts with another representation hint
2 --> $DIR/struct.rs:210:11
3 |
4 210 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs
5 | ^
6
7 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
8 --> $DIR/struct.rs:216:10
9 |
10 216 | #[derive(IntoBytes)]
11 | ^^^^^^^^^
12 |
13 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
16 --> $DIR/struct.rs:223:10
17 |
18 223 | #[derive(IntoBytes)]
19 | ^^^^^^^^^
20 |
21 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
24 --> $DIR/struct.rs:250:10
25 |
26 250 | #[derive(IntoBytes)]
27 | ^^^^^^^^^
28 |
29 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
30
31 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
32 --> $DIR/struct.rs:270:10
33 |
34 270 | #[derive(IntoBytes)]
35 | ^^^^^^^^^
36 |
37 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
38
39 error: cannot derive `Unaligned` on type with alignment greater than 1
40 --> $DIR/struct.rs:302:11
41 |
42 302 | #[repr(C, align(2))]
43 | ^^^^^
44
45 error: this conflicts with another representation hint
46 --> $DIR/struct.rs:308:8
47 |
48 308 | #[repr(transparent, align(2))]
49 | ^^^^^^^^^^^
50
51 error: this conflicts with another representation hint
52 --> $DIR/struct.rs:317:16
53 |
54 317 | #[repr(packed, align(2))]
55 | ^^^^^
56
57 error: this conflicts with another representation hint
58 --> $DIR/struct.rs:324:18
59 |
60 324 | #[repr(align(1), align(2))]
61 | ^^^^^
62
63 error: this conflicts with another representation hint
64 --> $DIR/struct.rs:330:18
65 |
66 330 | #[repr(align(2), align(4))]
67 | ^^^^^
68
69 error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
70 --> $DIR/struct.rs:334:10
71 |
72 334 | #[derive(Unaligned)]
73 | ^^^^^^^^^
74 |
75 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
76
77 error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
78 --> $DIR/struct.rs:339:10
79 |
80 339 | #[derive(Unaligned)]
81 | ^^^^^^^^^
82 |
83 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
84
85 error: this conflicts with another representation hint
86 --> $DIR/struct.rs:353:8
87 |
88 353 | #[repr(C, packed(2))]
89 | ^
90
91 error: `crate` attribute requires a path as the value
92 --> $DIR/struct.rs:371:20
93 |
94 371 | #[zerocopy(crate = "zerocopy_renamed"typo)]
95 | ^^^^^^^^^^^^^^^^^^^^^^
96
97 error: `crate` attribute requires a valid module path
98 --> $DIR/struct.rs:377:20
99 |
100 377 | #[zerocopy(crate = "Self::foo")]
101 | ^^^^^^^^^^^
102
103 error: `crate` attribute requires a valid module path
104 --> $DIR/struct.rs:383:20
105 |
106 383 | #[zerocopy(crate = "::crate::foo")]
107 | ^^^^^^^^^^^^^^
108
109 error: `crate` attribute requires a valid module path
110 --> $DIR/struct.rs:389:20
111 |
112 389 | #[zerocopy(crate = "foo::crate::bar")]
113 | ^^^^^^^^^^^^^^^^^
114
115 error: `crate` attribute requires a valid module path
116 --> $DIR/struct.rs:395:20
117 |
118 395 | #[zerocopy(crate = "foo::super::bar")]
119 | ^^^^^^^^^^^^^^^^^
120
121 error: `crate` attribute requires a valid module path
122 --> $DIR/struct.rs:401:20
123 |
124 401 | #[zerocopy(crate = "foo::Self::bar")]
125 | ^^^^^^^^^^^^^^^^
126
127 error: `crate` attribute requires a valid module path
128 --> $DIR/struct.rs:407:20
129 |
130 407 | #[zerocopy(crate = "foo::self")]
131 | ^^^^^^^^^^^
132
133 error[E0692]: transparent struct cannot have other repr hints
134 --> $DIR/struct.rs:308:8
135 |
136 308 | #[repr(transparent, align(2))]
137 | ^^^^^^^^^^^ ^^^^^^^^
138
139 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
140 --> $DIR/struct.rs:31:10
141 |
142 31 | #[derive(KnownLayout)]
143 | ^^^^^^^^^^^ doesn't have a size known at compile-time
144 |
145 = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`
146 note: required because it appears within the type `KL00`
147 --> $DIR/struct.rs:34:8
148 |
149 34 | struct KL00(u8, NotKnownLayoutDst);
150 | ^^^^
151 = help: see issue #48214
152 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
153
154 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
155 --> $DIR/struct.rs:38:10
156 |
157 38 | #[derive(KnownLayout)]
158 | ^^^^^^^^^^^ doesn't have a size known at compile-time
159 |
160 = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
161 note: required because it appears within the type `KL02`
162 --> $DIR/struct.rs:41:8
163 |
164 41 | struct KL02(u8, [u8]);
165 | ^^^^
166 = help: see issue #48214
167 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
168
169 error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy_renamed::KnownLayout` is not satisfied
170 --> $DIR/struct.rs:45:10
171 |
172 45 | #[derive(KnownLayout)]
173 | ^^^^^^^^^^^ unsatisfied trait bound
174 |
175 help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayoutDst`
176 --> $DIR/struct.rs:27:1
177 |
178 27 | struct NotKnownLayoutDst([u8]);
179 | ^^^^^^^^^^^^^^^^^^^^^^^^
180 = note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayoutDst`
181 = help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
182 &T
183 &mut T
184 ()
185 *const T
186 *mut T
187 AU16
188 AtomicBool
189 AtomicI16
190 and 73 others
191 = help: see issue #48214
192 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
193
194 error[E0277]: the trait bound `NotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied
195 --> $DIR/struct.rs:53:10
196 |
197 53 | #[derive(KnownLayout)]
198 | ^^^^^^^^^^^ unsatisfied trait bound
199 |
200 help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayout`
201 --> $DIR/struct.rs:25:1
202 |
203 25 | struct NotKnownLayout;
204 | ^^^^^^^^^^^^^^^^^^^^^
205 = note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayout`
206 = help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
207 &T
208 &mut T
209 ()
210 *const T
211 *mut T
212 AU16
213 AtomicBool
214 AtomicI16
215 and 73 others
216 = help: see issue #48214
217 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
218
219 error[E0277]: the trait bound `UnsafeCell<()>: zerocopy_renamed::Immutable` is not satisfied
220 --> $DIR/struct.rs:63:10
221 |
222 63 | #[derive(Immutable)]
223 | ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<()>`
224 |
225 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
226 = help: the following other types implement trait `zerocopy_renamed::Immutable`:
227 &T
228 &mut T
229 ()
230 (A, B)
231 (A, B, C)
232 (A, B, C, D)
233 (A, B, C, D, E)
234 (A, B, C, D, E, F)
235 and 130 others
236 = help: see issue #48214
237 = note: the full name for the type has been written to '/long-type-HASH.txt'
238 = note: consider using `--verbose` to print the full type name to the console
239 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
240
241 error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy_renamed::Immutable` is not satisfied
242 --> $DIR/struct.rs:70:10
243 |
244 70 | #[derive(Immutable)]
245 | ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<u8>`
246 |
247 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
248 = help: the following other types implement trait `zerocopy_renamed::Immutable`:
249 &T
250 &mut T
251 ()
252 (A, B)
253 (A, B, C)
254 (A, B, C, D)
255 (A, B, C, D, E)
256 (A, B, C, D, E, F)
257 and 130 others
258 = note: required for `[UnsafeCell<u8>; 0]` to implement `zerocopy_renamed::Immutable`
259 = help: see issue #48214
260 = note: the full name for the type has been written to '/long-type-HASH.txt'
261 = note: consider using `--verbose` to print the full type name to the console
262 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
263
264 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
265 --> $DIR/struct.rs:84:1
266 |
267 84 | struct TryFromBytesPacked {
268 | ^^^^^^^^^^^^^^^^^^^^^^^^^
269 |
270 note: `AU16` has a `#[repr(align)]` attribute
271 --> $DIR/../include.rs:64:5
272 |
273 64 | pub struct AU16(pub u16);
274 | ^^^^^^^^^^^^^^^
275
276 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
277 --> $DIR/struct.rs:92:1
278 |
279 92 | struct TryFromBytesPackedN {
280 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
281 |
282 note: `AU16` has a `#[repr(align)]` attribute
283 --> $DIR/../include.rs:64:5
284 |
285 64 | pub struct AU16(pub u16);
286 | ^^^^^^^^^^^^^^^
287
288 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
289 --> $DIR/struct.rs:100:1
290 |
291 100 | struct TryFromBytesCPacked {
292 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
293 |
294 note: `AU16` has a `#[repr(align)]` attribute
295 --> $DIR/../include.rs:64:5
296 |
297 64 | pub struct AU16(pub u16);
298 | ^^^^^^^^^^^^^^^
299
300 error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type
301 --> $DIR/struct.rs:108:1
302 |
303 108 | struct TryFromBytesCPackedN {
304 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
305 |
306 note: `AU16` has a `#[repr(align)]` attribute
307 --> $DIR/../include.rs:64:5
308 |
309 64 | pub struct AU16(pub u16);
310 | ^^^^^^^^^^^^^^^
311
312 error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
313 --> $DIR/struct.rs:120:10
314 |
315 120 | #[derive(IntoBytes)]
316 | ^^^^^^^^^ unsatisfied trait bound
317 |
318 help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
319 --> $DIR/../include.rs:64:5
320 |
321 64 | pub struct AU16(pub u16);
322 | ^^^^^^^^^^^^^^^
323 = note: Consider adding `#[derive(Unaligned)]` to `AU16`
324 = help: the following other types implement trait `zerocopy_renamed::Unaligned`:
325 ()
326 AtomicBool
327 AtomicI8
328 AtomicU8
329 Cell<T>
330 F32<O>
331 F64<O>
332 I128<O>
333 and 26 others
334 = help: see issue #48214
335 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
336
337 error[E0277]: `IntoBytes2` has 1 total byte(s) of padding
338 --> $DIR/struct.rs:129:10
339 |
340 129 | #[derive(IntoBytes)]
341 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
342 |
343 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
344 = note: consider adding explicit fields where padding would be
345 = note: consider using `#[repr(packed)]` to remove padding
346 help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()`
347 but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
348 --> $WORKSPACE/src/util/macro_util.rs:64:1
349 |
350 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
351 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
352 = help: see issue #48214
353 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
354
355 error[E0277]: `IntoBytes3` has 1 total byte(s) of padding
356 --> $DIR/struct.rs:139:10
357 |
358 139 | #[derive(IntoBytes)]
359 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
360 |
361 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
362 = note: consider adding explicit fields where padding would be
363 = note: consider using `#[repr(packed)]` to remove padding
364 help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()`
365 but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
366 --> $WORKSPACE/src/util/macro_util.rs:64:1
367 |
368 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
369 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
370 = help: see issue #48214
371 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
372
373 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
374 --> $DIR/struct.rs:158:10
375 |
376 158 | #[derive(IntoBytes)]
377 | ^^^^^^^^^ doesn't have a size known at compile-time
378 |
379 = help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]`
380 note: required because it appears within the type `IntoBytes4`
381 --> $DIR/struct.rs:163:8
382 |
383 163 | struct IntoBytes4 {
384 | ^^^^^^^^^^
385 = note: required for `IntoBytes4` to implement `macro_util::__size_of::Sized`
386 note: required by a bound in `macro_util::__size_of::size_of`
387 --> $WORKSPACE/src/util/macro_util.rs:308:29
388 |
389 308 | pub const fn size_of<T: Sized + ?core::marker::Sized>() -> usize {
390 | ^^^^^ required by this bound in `size_of`
391 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
392
393 error[E0277]: `[u8]` is unsized
394 --> $DIR/struct.rs:165:8
395 |
396 165 | b: SliceU8,
397 | ^^^^^^^ `IntoBytes` needs all field types to be `Sized` in order to determine whether there is padding
398 |
399 = help: the trait `Sized` is not implemented for `[u8]`
400 = note: consider using `#[repr(packed)]` to remove padding
401 = note: `IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized`
402 = note: required for `[u8]` to implement `macro_util::__size_of::Sized`
403 note: required by a bound in `macro_util::__size_of::size_of`
404 --> $WORKSPACE/src/util/macro_util.rs:308:29
405 |
406 308 | pub const fn size_of<T: Sized + ?core::marker::Sized>() -> usize {
407 | ^^^^^ required by this bound in `size_of`
408
409 error[E0277]: `IntoBytes5` has one or more padding bytes
410 --> $DIR/struct.rs:172:10
411 |
412 172 | #[derive(IntoBytes)]
413 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
414 |
415 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
416 = note: consider adding explicit fields where padding would be
417 = note: consider using `#[repr(packed)]` to remove padding
418 help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
419 but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it
420 --> $WORKSPACE/src/util/macro_util.rs:82:1
421 |
422 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
423 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
424 = help: see issue #48214
425 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
426
427 error[E0277]: `IntoBytes6` has one or more padding bytes
428 --> $DIR/struct.rs:184:10
429 |
430 184 | #[derive(IntoBytes)]
431 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
432 |
433 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
434 = note: consider adding explicit fields where padding would be
435 = note: consider using `#[repr(packed)]` to remove padding
436 help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
437 but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it
438 --> $WORKSPACE/src/util/macro_util.rs:82:1
439 |
440 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
441 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
442 = help: see issue #48214
443 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
444
445 error[E0277]: `IntoBytes7` has one or more padding bytes
446 --> $DIR/struct.rs:197:10
447 |
448 197 | #[derive(IntoBytes)]
449 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
450 |
451 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
452 = note: consider adding explicit fields where padding would be
453 = note: consider using `#[repr(packed)]` to remove padding
454 help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
455 but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it
456 --> $WORKSPACE/src/util/macro_util.rs:82:1
457 |
458 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
459 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
460 = help: see issue #48214
461 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
462
463 error[E0277]: `IntoBytes13` has one or more padding bytes
464 --> $DIR/struct.rs:260:10
465 |
466 260 | #[derive(IntoBytes)]
467 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
468 |
469 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
470 = note: consider adding explicit fields where padding would be
471 = note: consider using `#[repr(packed)]` to remove padding
472 help: the trait `DynamicPaddingFree<IntoBytes13, true>` is not implemented for `()`
473 but trait `DynamicPaddingFree<IntoBytes13, false>` is implemented for it
474 --> $WORKSPACE/src/util/macro_util.rs:82:1
475 |
476 82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {}
477 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
478 = help: see issue #48214
479 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
480
481 error[E0587]: type has conflicting packed and align representation hints
482 --> $DIR/struct.rs:319:1
483 |
484 319 | struct Unaligned3;
485 | ^^^^^^^^^^^^^^^^^
486
487 error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied
488 --> $DIR/struct.rs:357:10
489 |
490 357 | #[derive(SplitAt)]
491 | ^^^^^^^ unsatisfied trait bound
492 |
493 help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout`
494 --> $DIR/struct.rs:361:1
495 |
496 361 | struct SplitAtNotKnownLayout([u8]);
497 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
498 = note: Consider adding `#[derive(KnownLayout)]` to `SplitAtNotKnownLayout`
499 = help: the following other types implement trait `zerocopy_renamed::KnownLayout`:
500 &T
501 &mut T
502 ()
503 *const T
504 *mut T
505 AU16
506 AtomicBool
507 AtomicI16
508 and 73 others
509 note: required by a bound in `SplitAt`
510 --> $WORKSPACE/src/split_at.rs:63:27
511 |
512 63 | pub unsafe trait SplitAt: KnownLayout<PointerMetadata = usize> {
513 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt`
514 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
515
516 error[E0277]: the trait bound `u8: SplitAt` is not satisfied
517 --> $DIR/struct.rs:363:10
518 |
519 363 | #[derive(SplitAt, KnownLayout)]
520 | ^^^^^^^ the trait `SplitAt` is not implemented for `u8`
521 |
522 = note: Consider adding `#[derive(SplitAt)]` to `u8`
523 help: the following other types implement trait `SplitAt`
524 --> $DIR/struct.rs:357:10
525 |
526 357 | #[derive(SplitAt)]
527 | ^^^^^^^ `SplitAtNotKnownLayout`
528 ...
529 363 | #[derive(SplitAt, KnownLayout)]
530 | ^^^^^^^ `SplitAtSized`
531 |
532 ::: $WORKSPACE/src/split_at.rs:253:1
533 |
534 253 | unsafe impl<T> SplitAt for [T] {
535 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]`
536 = help: see issue #48214
537 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
538
539 error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied
540 --> $DIR/struct.rs:244:28
541 |
542 244 | is_into_bytes_11::<IntoBytes11<AU16>>();
543 | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound
544 |
545 help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16`
546 --> $DIR/../include.rs:64:5
547 |
548 64 | pub struct AU16(pub u16);
549 | ^^^^^^^^^^^^^^^
550 = note: Consider adding `#[derive(Unaligned)]` to `AU16`
551 = help: the following other types implement trait `zerocopy_renamed::Unaligned`:
552 ()
553 AtomicBool
554 AtomicI8
555 AtomicU8
556 Cell<T>
557 F32<O>
558 F64<O>
559 I128<O>
560 and 26 others
561 note: required for `IntoBytes11<AU16>` to implement `zerocopy_renamed::IntoBytes`
562 --> $DIR/struct.rs:232:10
563 |
564 232 | #[derive(IntoBytes)]
565 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
566 note: required by a bound in `is_into_bytes_11`
567 --> $DIR/struct.rs:242:24
568 |
569 242 | fn is_into_bytes_11<T: IntoBytes>() {
570 | ^^^^^^^^^ required by this bound in `is_into_bytes_11`
571 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
572
573 error: aborting due to 44 previous errors
574
575 Some errors have detailed explanations: E0277, E0587, E0588, E0692.
576 For more information about an error, try `rustc --explain E0277`.