Debian Codegraph @

.cargo/vendor/zerocopy-derive/tests/ui-msrv/struct.stderr

raw
1 error: this conflicts with another representation hint
2 --> tests/ui-msrv/struct.rs:167:11
3 |
4 167 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs
5 | ^
6
7 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
8 --> tests/ui-msrv/struct.rs:172:10
9 |
10 172 | #[derive(IntoBytes)]
11 | ^^^^^^^^^
12 |
13 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
16 --> tests/ui-msrv/struct.rs:177:10
17 |
18 177 | #[derive(IntoBytes)]
19 | ^^^^^^^^^
20 |
21 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23 error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout
24 --> tests/ui-msrv/struct.rs:200:10
25 |
26 200 | #[derive(IntoBytes)]
27 | ^^^^^^^^^
28 |
29 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
30
31 error: cannot derive `Unaligned` on type with alignment greater than 1
32 --> tests/ui-msrv/struct.rs:211:11
33 |
34 211 | #[repr(C, align(2))]
35 | ^^^^^
36
37 error: this conflicts with another representation hint
38 --> tests/ui-msrv/struct.rs:215:8
39 |
40 215 | #[repr(transparent, align(2))]
41 | ^^^^^^^^^^^
42
43 error: this conflicts with another representation hint
44 --> tests/ui-msrv/struct.rs:221:16
45 |
46 221 | #[repr(packed, align(2))]
47 | ^^^^^
48
49 error: this conflicts with another representation hint
50 --> tests/ui-msrv/struct.rs:225:18
51 |
52 225 | #[repr(align(1), align(2))]
53 | ^^^^^
54
55 error: this conflicts with another representation hint
56 --> tests/ui-msrv/struct.rs:229:18
57 |
58 229 | #[repr(align(2), align(4))]
59 | ^^^^^
60
61 error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
62 --> tests/ui-msrv/struct.rs:232:10
63 |
64 232 | #[derive(Unaligned)]
65 | ^^^^^^^^^
66 |
67 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
68
69 error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment
70 --> tests/ui-msrv/struct.rs:235:10
71 |
72 235 | #[derive(Unaligned)]
73 | ^^^^^^^^^
74 |
75 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
76
77 error: this conflicts with another representation hint
78 --> tests/ui-msrv/struct.rs:245:8
79 |
80 245 | #[repr(C, packed(2))]
81 | ^
82
83 error[E0692]: transparent struct cannot have other repr hints
84 --> tests/ui-msrv/struct.rs:215:8
85 |
86 215 | #[repr(transparent, align(2))]
87 | ^^^^^^^^^^^ ^^^^^^^^
88
89 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
90 --> tests/ui-msrv/struct.rs:31:10
91 |
92 31 | #[derive(KnownLayout)]
93 | ^^^^^^^^^^^ doesn't have a size known at compile-time
94 |
95 = help: within `KL00`, the trait `Sized` is not implemented for `[u8]`
96 note: required because it appears within the type `KL00`
97 --> tests/ui-msrv/struct.rs:32:8
98 |
99 32 | struct KL00(u8, NotKnownLayoutDst);
100 | ^^^^
101 = help: see issue #48214
102 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
103
104 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
105 --> tests/ui-msrv/struct.rs:36:10
106 |
107 36 | #[derive(KnownLayout)]
108 | ^^^^^^^^^^^ doesn't have a size known at compile-time
109 |
110 = help: within `KL02`, the trait `Sized` is not implemented for `[u8]`
111 note: required because it appears within the type `KL02`
112 --> tests/ui-msrv/struct.rs:37:8
113 |
114 37 | struct KL02(u8, [u8]);
115 | ^^^^
116 = help: see issue #48214
117 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
118
119 error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy::KnownLayout` is not satisfied
120 --> tests/ui-msrv/struct.rs:41:10
121 |
122 41 | #[derive(KnownLayout)]
123 | ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayoutDst`
124 |
125 = help: see issue #48214
126 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
127
128 error[E0277]: the trait bound `NotKnownLayout: zerocopy::KnownLayout` is not satisfied
129 --> tests/ui-msrv/struct.rs:47:10
130 |
131 47 | #[derive(KnownLayout)]
132 | ^^^^^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `NotKnownLayout`
133 |
134 = help: see issue #48214
135 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info)
136
137 error[E0277]: the trait bound `UnsafeCell<()>: zerocopy::Immutable` is not satisfied
138 --> tests/ui-msrv/struct.rs:55:10
139 |
140 55 | #[derive(Immutable)]
141 | ^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `UnsafeCell<()>`
142 |
143 = help: see issue #48214
144 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
145
146 error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy::Immutable` is not satisfied
147 --> tests/ui-msrv/struct.rs:60:10
148 |
149 60 | #[derive(Immutable)]
150 | ^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `UnsafeCell<u8>`
151 |
152 = note: required because of the requirements on the impl of `zerocopy::Immutable` for `[UnsafeCell<u8>; 0]`
153 = help: see issue #48214
154 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
155
156 error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied
157 --> tests/ui-msrv/struct.rs:100:10
158 |
159 100 | #[derive(IntoBytes)]
160 | ^^^^^^^^^ the trait `zerocopy::Unaligned` is not implemented for `AU16`
161 |
162 = help: see issue #48214
163 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
164
165 error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, 1_usize>` is not satisfied
166 --> tests/ui-msrv/struct.rs:107:10
167 |
168 107 | #[derive(IntoBytes)]
169 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, 1_usize>` is not implemented for `()`
170 |
171 = help: the following implementations were found:
172 <() as PaddingFree<T, 0_usize>>
173 = help: see issue #48214
174 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
175
176 error[E0277]: the trait bound `(): PaddingFree<IntoBytes3, 1_usize>` is not satisfied
177 --> tests/ui-msrv/struct.rs:114:10
178 |
179 114 | #[derive(IntoBytes)]
180 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes3, 1_usize>` is not implemented for `()`
181 |
182 = help: the following implementations were found:
183 <() as PaddingFree<T, 0_usize>>
184 = help: see issue #48214
185 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
186
187 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
188 --> tests/ui-msrv/struct.rs:130:10
189 |
190 130 | #[derive(IntoBytes)]
191 | ^^^^^^^^^ doesn't have a size known at compile-time
192 |
193 = help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]`
194 note: required because it appears within the type `IntoBytes4`
195 --> tests/ui-msrv/struct.rs:132:8
196 |
197 132 | struct IntoBytes4 {
198 | ^^^^^^^^^^
199 note: required by a bound in `std::mem::size_of`
200 --> $RUST/core/src/mem/mod.rs
201 |
202 | pub const fn size_of<T>() -> usize {
203 | ^ required by this bound in `std::mem::size_of`
204 = note: this error originates in the macro `::zerocopy::struct_padding` (in Nightly builds, run with -Z macro-backtrace for more info)
205
206 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
207 --> tests/ui-msrv/struct.rs:134:8
208 |
209 134 | b: SliceU8,
210 | ^^^^^^^ doesn't have a size known at compile-time
211 |
212 = help: the trait `Sized` is not implemented for `[u8]`
213 note: required by a bound in `std::mem::size_of`
214 --> $RUST/core/src/mem/mod.rs
215 |
216 | pub const fn size_of<T>() -> usize {
217 | ^ required by this bound in `std::mem::size_of`
218
219 error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes5, true>` is not satisfied
220 --> tests/ui-msrv/struct.rs:139:10
221 |
222 139 | #[derive(IntoBytes)]
223 | ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()`
224 |
225 = help: the following implementations were found:
226 <() as DynamicPaddingFree<T, false>>
227 = help: see issue #48214
228 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
229
230 error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes6, true>` is not satisfied
231 --> tests/ui-msrv/struct.rs:148:10
232 |
233 148 | #[derive(IntoBytes)]
234 | ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()`
235 |
236 = help: the following implementations were found:
237 <() as DynamicPaddingFree<T, false>>
238 = help: see issue #48214
239 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
240
241 error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes7, true>` is not satisfied
242 --> tests/ui-msrv/struct.rs:158:10
243 |
244 158 | #[derive(IntoBytes)]
245 | ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()`
246 |
247 = help: the following implementations were found:
248 <() as DynamicPaddingFree<T, false>>
249 = help: see issue #48214
250 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
251
252 error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy::KnownLayout` is not satisfied
253 --> tests/ui-msrv/struct.rs:248:10
254 |
255 248 | #[derive(SplitAt)]
256 | ^^^^^^^ the trait `zerocopy::KnownLayout` is not implemented for `SplitAtNotKnownLayout`
257 |
258 note: required by a bound in `SplitAt`
259 --> $WORKSPACE/src/split_at.rs
260 |
261 | pub unsafe trait SplitAt: KnownLayout<PointerMetadata = usize> {
262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt`
263 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
264
265 error[E0277]: the trait bound `u8: SplitAt` is not satisfied
266 --> tests/ui-msrv/struct.rs:252:10
267 |
268 252 | #[derive(SplitAt, KnownLayout)]
269 | ^^^^^^^ the trait `SplitAt` is not implemented for `u8`
270 |
271 = help: see issue #48214
272 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)
273
274 error[E0271]: type mismatch resolving `<u8 as zerocopy::KnownLayout>::PointerMetadata == usize`
275 --> tests/ui-msrv/struct.rs:252:10
276 |
277 252 | #[derive(SplitAt, KnownLayout)]
278 | ^^^^^^^ expected `()`, found `usize`
279 |
280 = help: see issue #48214
281 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)