1error: unsupported on types with type parameters 2 --> tests/ui-nightly/union.rs:24:10 3 | 424 | #[derive(AsBytes)] 5 | ^^^^^^^ 6 | 7 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) 8 9error: cannot derive Unaligned with repr(align(N > 1)) 10 --> tests/ui-nightly/union.rs:42:11 11 | 1242 | #[repr(C, align(2))] 13 | ^^^^^^^^ 14 15error: cannot derive Unaligned with repr(align(N > 1)) 16 --> tests/ui-nightly/union.rs:58:16 17 | 1858 | #[repr(packed, align(2))] 19 | ^^^^^^^^ 20 21error: cannot derive Unaligned with repr(align(N > 1)) 22 --> tests/ui-nightly/union.rs:64:18 23 | 2464 | #[repr(align(1), align(2))] 25 | ^^^^^^^^ 26 27error: cannot derive Unaligned with repr(align(N > 1)) 28 --> tests/ui-nightly/union.rs:70:8 29 | 3070 | #[repr(align(2), align(4))] 31 | ^^^^^^^^ 32 33error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied 34 --> tests/ui-nightly/union.rs:30:10 35 | 3630 | #[derive(AsBytes)] 37 | ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>` 38 | 39 = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes2, true>` 40 = help: see issue #48214 41 = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info) 42help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 43 | 449 + #![feature(trivial_bounds)] 45 | 46 47error[E0587]: type has conflicting packed and align representation hints 48 --> tests/ui-nightly/union.rs:59:1 49 | 5059 | union Unaligned3 { 51 | ^^^^^^^^^^^^^^^^ 52