1error: unsupported on generic structs that are not repr(transparent) or repr(packed)
2  --> tests/ui-nightly/struct.rs:55:10
3   |
455 | #[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/struct.rs:80:11
11   |
1280 | #[repr(C, align(2))]
13   |           ^^^^^^^^
14
15error: cannot derive Unaligned with repr(align(N > 1))
16  --> tests/ui-nightly/struct.rs:84:21
17   |
1884 | #[repr(transparent, align(2))]
19   |                     ^^^^^^^^
20
21error: cannot derive Unaligned with repr(align(N > 1))
22  --> tests/ui-nightly/struct.rs:90:16
23   |
2490 | #[repr(packed, align(2))]
25   |                ^^^^^^^^
26
27error: cannot derive Unaligned with repr(align(N > 1))
28  --> tests/ui-nightly/struct.rs:94:18
29   |
3094 | #[repr(align(1), align(2))]
31   |                  ^^^^^^^^
32
33error: cannot derive Unaligned with repr(align(N > 1))
34  --> tests/ui-nightly/struct.rs:98:8
35   |
3698 | #[repr(align(2), align(4))]
37   |        ^^^^^^^^
38
39error[E0692]: transparent struct cannot have other repr hints
40  --> tests/ui-nightly/struct.rs:84:8
41   |
4284 | #[repr(transparent, align(2))]
43   |        ^^^^^^^^^^^  ^^^^^^^^
44
45error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
46  --> tests/ui-nightly/struct.rs:31:10
47   |
4831 | #[derive(KnownLayout)]
49   |          ^^^^^^^^^^^ doesn't have a size known at compile-time
50   |
51   = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`, which is required by `KL00: Sized`
52note: required because it appears within the type `KL00`
53  --> tests/ui-nightly/struct.rs:32:8
54   |
5532 | struct KL00(u8, NotKnownLayoutDst);
56   |        ^^^^
57   = help: see issue #48214
58   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
59help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
60   |
619  + #![feature(trivial_bounds)]
62   |
63
64error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
65  --> tests/ui-nightly/struct.rs:36:10
66   |
6736 | #[derive(KnownLayout)]
68   |          ^^^^^^^^^^^ doesn't have a size known at compile-time
69   |
70   = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`, which is required by `KL02: Sized`
71note: required because it appears within the type `KL02`
72  --> tests/ui-nightly/struct.rs:37:8
73   |
7437 | struct KL02(u8, [u8]);
75   |        ^^^^
76   = help: see issue #48214
77   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
78help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
79   |
809  + #![feature(trivial_bounds)]
81   |
82
83error[E0277]: the trait bound `NotKnownLayoutDst: KnownLayout` is not satisfied
84  --> tests/ui-nightly/struct.rs:41:10
85   |
8641 | #[derive(KnownLayout)]
87   |          ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayoutDst`
88   |
89   = help: the following other types implement trait `KnownLayout`:
90             ()
91             *const T
92             *mut T
93             AU16
94             F32<O>
95             F64<O>
96             I128<O>
97             I16<O>
98           and $N others
99   = help: see issue #48214
100   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
101help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
102   |
1039  + #![feature(trivial_bounds)]
104   |
105
106error[E0277]: the trait bound `NotKnownLayout: KnownLayout` is not satisfied
107  --> tests/ui-nightly/struct.rs:47:10
108   |
10947 | #[derive(KnownLayout)]
110   |          ^^^^^^^^^^^ the trait `KnownLayout` is not implemented for `NotKnownLayout`
111   |
112   = help: the following other types implement trait `KnownLayout`:
113             ()
114             *const T
115             *mut T
116             AU16
117             F32<O>
118             F64<O>
119             I128<O>
120             I16<O>
121           and $N others
122   = help: see issue #48214
123   = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
124help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
125   |
1269  + #![feature(trivial_bounds)]
127   |
128
129error[E0277]: the trait bound `HasPadding<AsBytes2, true>: ShouldBe<false>` is not satisfied
130  --> tests/ui-nightly/struct.rs:59:10
131   |
13259 | #[derive(AsBytes)]
133   |          ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes2, true>`
134   |
135   = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes2, true>`
136   = help: see issue #48214
137   = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
138help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
139   |
1409  + #![feature(trivial_bounds)]
141   |
142
143error[E0277]: the trait bound `HasPadding<AsBytes3, true>: ShouldBe<false>` is not satisfied
144  --> tests/ui-nightly/struct.rs:66:10
145   |
14666 | #[derive(AsBytes)]
147   |          ^^^^^^^ the trait `ShouldBe<false>` is not implemented for `HasPadding<AsBytes3, true>`
148   |
149   = help: the trait `ShouldBe<true>` is implemented for `HasPadding<AsBytes3, true>`
150   = help: see issue #48214
151   = note: this error originates in the derive macro `AsBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
152help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
153   |
1549  + #![feature(trivial_bounds)]
155   |
156
157error[E0587]: type has conflicting packed and align representation hints
158  --> tests/ui-nightly/struct.rs:91:1
159   |
16091 | struct Unaligned3;
161   | ^^^^^^^^^^^^^^^^^
162