Debian Codegraph @

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

raw
1 error: unrecognized representation hint
2 --> tests/ui-msrv/enum.rs:19:8
3 |
4 19 | #[repr("foo")]
5 | ^^^^^
6
7 error: unrecognized representation hint
8 --> tests/ui-msrv/enum.rs:25:8
9 |
10 25 | #[repr(foo)]
11 | ^^^
12
13 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
14 --> tests/ui-msrv/enum.rs:30:10
15 |
16 30 | #[derive(FromBytes)]
17 | ^^^^^^^^^
18 |
19 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
20
21 error: this conflicts with another representation hint
22 --> tests/ui-msrv/enum.rs:37:12
23 |
24 37 | #[repr(u8, u16)]
25 | ^^^
26
27 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
28 --> tests/ui-msrv/enum.rs:42:10
29 |
30 42 | #[derive(FromBytes)]
31 | ^^^^^^^^^
32 |
33 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
36 --> tests/ui-msrv/enum.rs:69:10
37 |
38 69 | #[derive(TryFromBytes)]
39 | ^^^^^^^^^^^^
40 |
41 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
42
43 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
44 --> tests/ui-msrv/enum.rs:74:10
45 |
46 74 | #[derive(TryFromBytes)]
47 | ^^^^^^^^^^^^
48 |
49 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
50
51 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
52 --> tests/ui-msrv/enum.rs:92:10
53 |
54 92 | #[derive(FromZeros)]
55 | ^^^^^^^^^
56 |
57 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
58
59 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
60 --> tests/ui-msrv/enum.rs:97:10
61 |
62 97 | #[derive(FromZeros)]
63 | ^^^^^^^^^
64 |
65 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
66
67 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
68 --> tests/ui-msrv/enum.rs:103:10
69 |
70 103 | #[derive(FromZeros)]
71 | ^^^^^^^^^
72 |
73 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
74
75 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
76 --> tests/ui-msrv/enum.rs:110:1
77 |
78 110 | / #[repr(u8)]
79 111 | | enum FromZeros4 {
80 112 | | A = 1,
81 113 | | B = 2,
82 114 | | }
83 | |_^
84
85 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
86 help: This enum has discriminants which are not literal integers. One of those may define or imply which variant has a discriminant of zero. Use a literal integer to define or imply the variant with a discriminant of zero.
87 --> tests/ui-msrv/enum.rs:119:1
88 |
89 119 | / #[repr(i8)]
90 120 | | enum FromZeros5 {
91 121 | | A = NEGATIVE_ONE,
92 122 | | B,
93 123 | | }
94 | |_^
95
96 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
97 --> tests/ui-msrv/enum.rs:134:1
98 |
99 134 | / #[repr(u8)]
100 135 | | enum FromZeros7 {
101 136 | | A = 1,
102 137 | | B(NotFromZeros),
103 138 | | }
104 | |_^
105
106 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
107 --> tests/ui-msrv/enum.rs:144:10
108 |
109 144 | #[derive(FromBytes)]
110 | ^^^^^^^^^
111 |
112 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
113
114 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
115 --> tests/ui-msrv/enum.rs:150:8
116 |
117 150 | #[repr(C)]
118 | ^
119
120 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
121 --> tests/ui-msrv/enum.rs:156:8
122 |
123 156 | #[repr(usize)]
124 | ^^^^^
125
126 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
127 --> tests/ui-msrv/enum.rs:162:8
128 |
129 162 | #[repr(isize)]
130 | ^^^^^
131
132 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
133 --> tests/ui-msrv/enum.rs:168:8
134 |
135 168 | #[repr(u32)]
136 | ^^^
137
138 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
139 --> tests/ui-msrv/enum.rs:174:8
140 |
141 174 | #[repr(i32)]
142 | ^^^
143
144 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
145 --> tests/ui-msrv/enum.rs:180:8
146 |
147 180 | #[repr(u64)]
148 | ^^^
149
150 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
151 --> tests/ui-msrv/enum.rs:186:8
152 |
153 186 | #[repr(i64)]
154 | ^^^
155
156 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
157 --> tests/ui-msrv/enum.rs:456:10
158 |
159 456 | #[derive(Unaligned)]
160 | ^^^^^^^^^
161 |
162 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
163
164 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
165 --> tests/ui-msrv/enum.rs:462:10
166 |
167 462 | #[derive(Unaligned)]
168 | ^^^^^^^^^
169 |
170 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
171
172 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
173 --> tests/ui-msrv/enum.rs:468:10
174 |
175 468 | #[derive(Unaligned)]
176 | ^^^^^^^^^
177 |
178 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
179
180 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
181 --> tests/ui-msrv/enum.rs:474:10
182 |
183 474 | #[derive(Unaligned)]
184 | ^^^^^^^^^
185 |
186 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
187
188 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
189 --> tests/ui-msrv/enum.rs:480:10
190 |
191 480 | #[derive(Unaligned)]
192 | ^^^^^^^^^
193 |
194 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
195
196 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
197 --> tests/ui-msrv/enum.rs:486:10
198 |
199 486 | #[derive(Unaligned)]
200 | ^^^^^^^^^
201 |
202 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
203
204 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
205 --> tests/ui-msrv/enum.rs:492:10
206 |
207 492 | #[derive(Unaligned)]
208 | ^^^^^^^^^
209 |
210 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
211
212 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
213 --> tests/ui-msrv/enum.rs:498:10
214 |
215 498 | #[derive(Unaligned)]
216 | ^^^^^^^^^
217 |
218 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
219
220 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
221 --> tests/ui-msrv/enum.rs:504:10
222 |
223 504 | #[derive(Unaligned)]
224 | ^^^^^^^^^
225 |
226 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
227
228 error: cannot derive `Unaligned` on type with alignment greater than 1
229 --> tests/ui-msrv/enum.rs:511:12
230 |
231 511 | #[repr(u8, align(2))]
232 | ^^^^^
233
234 error: cannot derive `Unaligned` on type with alignment greater than 1
235 --> tests/ui-msrv/enum.rs:517:12
236 |
237 517 | #[repr(i8, align(2))]
238 | ^^^^^
239
240 error: this conflicts with another representation hint
241 --> tests/ui-msrv/enum.rs:523:18
242 |
243 523 | #[repr(align(1), align(2))]
244 | ^^^^^
245
246 error: this conflicts with another representation hint
247 --> tests/ui-msrv/enum.rs:529:18
248 |
249 529 | #[repr(align(2), align(4))]
250 | ^^^^^
251
252 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
253 --> tests/ui-msrv/enum.rs:562:10
254 |
255 562 | #[derive(IntoBytes)]
256 | ^^^^^^^^^
257 |
258 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
259
260 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
261 --> tests/ui-msrv/enum.rs:568:10
262 |
263 568 | #[derive(IntoBytes)]
264 | ^^^^^^^^^
265 |
266 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
267
268 error: generic parameters may not be used in const operations
269 --> tests/ui-msrv/enum.rs:576:7
270 |
271 576 | A(T),
272 | ^ cannot perform const operation using `T`
273 |
274 = note: type parameters may not be used in const expressions
275
276 error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
277 --> tests/ui-msrv/enum.rs:136:9
278 |
279 136 | A = 1,
280 | ^ disallowed custom discriminant
281 137 | B(NotFromZeros),
282 | --------------- tuple variant defined here
283 |
284 = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
285
286 error[E0565]: meta item in `repr` must be an identifier
287 --> tests/ui-msrv/enum.rs:19:8
288 |
289 19 | #[repr("foo")]
290 | ^^^^^
291
292 error[E0552]: unrecognized representation hint
293 --> tests/ui-msrv/enum.rs:25:8
294 |
295 25 | #[repr(foo)]
296 | ^^^
297
298 error[E0566]: conflicting representation hints
299 --> tests/ui-msrv/enum.rs:37:8
300 |
301 37 | #[repr(u8, u16)]
302 | ^^ ^^^
303 |
304 = note: `#[deny(conflicting_repr_hints)]` on by default
305 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
306 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
307
308 error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
309 --> tests/ui-msrv/enum.rs:51:10
310 |
311 51 | #[derive(Immutable)]
312 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
313 |
314 = help: see issue #48214
315 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
316
317 error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
318 --> tests/ui-msrv/enum.rs:59:10
319 |
320 59 | #[derive(Immutable)]
321 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
322 |
323 = help: see issue #48214
324 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
325
326 error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
327 --> tests/ui-msrv/enum.rs:82:10
328 |
329 82 | #[derive(TryFromBytes)]
330 | ^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
331 |
332 = help: see issue #48214
333 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
334
335 error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
336 --> tests/ui-msrv/enum.rs:127:10
337 |
338 127 | #[derive(FromZeros)]
339 | ^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotFromZeros`
340 |
341 = help: see issue #48214
342 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
343
344 error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
345 --> tests/ui-msrv/enum.rs:127:10
346 |
347 127 | #[derive(FromZeros)]
348 | ^^^^^^^^^ the trait `FromZeros` is not implemented for `NotFromZeros`
349 |
350 = help: see issue #48214
351 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
352
353 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
354 --> tests/ui-msrv/enum.rs:191:10
355 |
356 191 | #[derive(FromBytes)]
357 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
358 |
359 = help: see issue #48214
360 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
361
362 error[E0277]: the trait bound `(): PaddingFree<IntoBytes1, 1_usize>` is not satisfied
363 --> tests/ui-msrv/enum.rs:538:10
364 |
365 538 | #[derive(IntoBytes)]
366 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes1, 1_usize>` is not implemented for `()`
367 |
368 = help: the following implementations were found:
369 <() as PaddingFree<T, 0_usize>>
370 = help: see issue #48214
371 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
372
373 error[E0277]: the trait bound `(): PaddingFree<IntoBytes2, 3_usize>` is not satisfied
374 --> tests/ui-msrv/enum.rs:549:10
375 |
376 549 | #[derive(IntoBytes)]
377 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes2, 3_usize>` is not implemented for `()`
378 |
379 = help: the following implementations were found:
380 <() as PaddingFree<T, 0_usize>>
381 = help: see issue #48214
382 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
383
384 error[E0277]: the trait bound `(): PaddingFree<IntoBytes3, 2_usize>` is not satisfied
385 --> tests/ui-msrv/enum.rs:555:10
386 |
387 555 | #[derive(IntoBytes)]
388 | ^^^^^^^^^ the trait `PaddingFree<IntoBytes3, 2_usize>` is not implemented for `()`
389 |
390 = help: the following implementations were found:
391 <() as PaddingFree<T, 0_usize>>
392 = help: see issue #48214
393 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
394
395 error: generic `Self` types are currently not permitted in anonymous constants
396 --> tests/ui-msrv/enum.rs:573:10
397 |
398 573 | #[derive(IntoBytes)]
399 | ^^^^^^^^^
400 |
401 note: not a concrete type
402 --> tests/ui-msrv/enum.rs:573:10
403 |
404 573 | #[derive(IntoBytes)]
405 | ^^^^^^^^^
406 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)