1error: unsupported on types with type parameters 2 --> tests/ui-msrv/union.rs:33:10 3 | 433 | #[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 9error: must be #[repr(C)], #[repr(packed)], or #[repr(transparent)] 10 --> tests/ui-msrv/union.rs:47:10 11 | 1247 | #[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 17error: must be #[repr(C)], #[repr(packed)], or #[repr(transparent)] 18 --> tests/ui-msrv/union.rs:53:10 19 | 2053 | #[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 25error: cannot derive `Unaligned` on type with alignment greater than 1 26 --> tests/ui-msrv/union.rs:64:11 27 | 2864 | #[repr(C, align(2))] 29 | ^^^^^ 30 31error: this conflicts with another representation hint 32 --> tests/ui-msrv/union.rs:80:16 33 | 3480 | #[repr(packed, align(2))] 35 | ^^^^^ 36 37error: this conflicts with another representation hint 38 --> tests/ui-msrv/union.rs:86:18 39 | 4086 | #[repr(align(1), align(2))] 41 | ^^^^^ 42 43error: this conflicts with another representation hint 44 --> tests/ui-msrv/union.rs:92:18 45 | 4692 | #[repr(align(2), align(4))] 47 | ^^^^^ 48 49error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment 50 --> tests/ui-msrv/union.rs:97:10 51 | 5297 | #[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 57error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment 58 --> tests/ui-msrv/union.rs:103:10 59 | 60103 | #[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 65error[E0277]: the trait bound `UnsafeCell<()>: zerocopy::Immutable` is not satisfied 66 --> tests/ui-msrv/union.rs:24:10 67 | 6824 | #[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 75error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, true>` is not satisfied 76 --> tests/ui-msrv/union.rs:39:10 77 | 7839 | #[derive(IntoBytes)] 79 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, true>` is not implemented for `()` 80 | 81 = help: the following implementations were found: 82 <() as PaddingFree<T, false>> 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) 85