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