| 1 |
error: unsupported on types with type parameters |
| 2 |
--> tests/ui-msrv/union.rs:34:10 |
| 3 |
| |
| 4 |
34 | #[derive(IntoBytes)] |
| 5 |
| ^^^^^^^^^ |
| 6 |
| |
| 7 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 8 |
|
| 9 |
error: must be #[repr(C)], #[repr(packed)], or #[repr(transparent)] |
| 10 |
--> tests/ui-msrv/union.rs:48:10 |
| 11 |
| |
| 12 |
48 | #[derive(IntoBytes)] |
| 13 |
| ^^^^^^^^^ |
| 14 |
| |
| 15 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 16 |
|
| 17 |
error: must be #[repr(C)], #[repr(packed)], or #[repr(transparent)] |
| 18 |
--> tests/ui-msrv/union.rs:54:10 |
| 19 |
| |
| 20 |
54 | #[derive(IntoBytes)] |
| 21 |
| ^^^^^^^^^ |
| 22 |
| |
| 23 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 24 |
|
| 25 |
error: cannot derive `Unaligned` on type with alignment greater than 1 |
| 26 |
--> tests/ui-msrv/union.rs:65:11 |
| 27 |
| |
| 28 |
65 | #[repr(C, align(2))] |
| 29 |
| ^^^^^ |
| 30 |
|
| 31 |
error: this conflicts with another representation hint |
| 32 |
--> tests/ui-msrv/union.rs:81:16 |
| 33 |
| |
| 34 |
81 | #[repr(packed, align(2))] |
| 35 |
| ^^^^^ |
| 36 |
|
| 37 |
error: this conflicts with another representation hint |
| 38 |
--> tests/ui-msrv/union.rs:87:18 |
| 39 |
| |
| 40 |
87 | #[repr(align(1), align(2))] |
| 41 |
| ^^^^^ |
| 42 |
|
| 43 |
error: this conflicts with another representation hint |
| 44 |
--> tests/ui-msrv/union.rs:93:18 |
| 45 |
| |
| 46 |
93 | #[repr(align(2), align(4))] |
| 47 |
| ^^^^^ |
| 48 |
|
| 49 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 50 |
--> tests/ui-msrv/union.rs:98:10 |
| 51 |
| |
| 52 |
98 | #[derive(Unaligned)] |
| 53 |
| ^^^^^^^^^ |
| 54 |
| |
| 55 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 56 |
|
| 57 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 58 |
--> tests/ui-msrv/union.rs:104:10 |
| 59 |
| |
| 60 |
104 | #[derive(Unaligned)] |
| 61 |
| ^^^^^^^^^ |
| 62 |
| |
| 63 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 64 |
|
| 65 |
error[E0277]: the trait bound `UnsafeCell<()>: zerocopy::Immutable` is not satisfied |
| 66 |
--> tests/ui-msrv/union.rs:25:10 |
| 67 |
| |
| 68 |
25 | #[derive(Immutable)] |
| 69 |
| ^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `UnsafeCell<()>` |
| 70 |
| |
| 71 |
= note: required because of the requirements on the impl of `zerocopy::Immutable` for `ManuallyDrop<UnsafeCell<()>>` |
| 72 |
= help: see issue #48214 |
| 73 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 74 |
|
| 75 |
error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, 1_usize>` is not satisfied |
| 76 |
--> tests/ui-msrv/union.rs:40:10 |
| 77 |
| |
| 78 |
40 | #[derive(IntoBytes)] |
| 79 |
| ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, 1_usize>` is not implemented for `()` |
| 80 |
| |
| 81 |
= help: the following implementations were found: |
| 82 |
<() as PaddingFree<T, 0_usize>> |
| 83 |
= help: see issue #48214 |
| 84 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |