Debian Codegraph @

debian/missing-sources/zerocopy-derive/tests/ui-nightly/enum.stderr

raw
1 error: unrecognized representation hint
2 --> tests/ui-nightly/enum.rs:20:8
3 |
4 20 | #[repr("foo")]
5 | ^^^^^
6
7 error: unrecognized representation hint
8 --> tests/ui-nightly/enum.rs:27:8
9 |
10 27 | #[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-nightly/enum.rs:32:10
15 |
16 32 | #[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-nightly/enum.rs:41:8
23 |
24 41 | #[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-nightly/enum.rs:46:10
29 |
30 46 | #[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-nightly/enum.rs:78:1
37 |
38 78 | / #[zerocopy(crate = "zerocopy_renamed")]
39 79 | | enum TryFromBytes1 {
40 80 | | A,
41 81 | | }
42 | |_^
43
44 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
45 --> tests/ui-nightly/enum.rs:84:1
46 |
47 84 | / #[zerocopy(crate = "zerocopy_renamed")]
48 85 | | enum TryFromBytes2 {
49 86 | | A,
50 87 | | B(u8),
51 88 | | }
52 | |_^
53
54 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
55 --> tests/ui-nightly/enum.rs:104:1
56 |
57 104 | / #[zerocopy(crate = "zerocopy_renamed")]
58 105 | | enum FromZeros1 {
59 106 | | A(u8),
60 107 | | }
61 | |_^
62
63 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
64 --> tests/ui-nightly/enum.rs:110:1
65 |
66 110 | / #[zerocopy(crate = "zerocopy_renamed")]
67 111 | | enum FromZeros2 {
68 112 | | A,
69 113 | | B(u8),
70 114 | | }
71 | |_^
72
73 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
74 --> tests/ui-nightly/enum.rs:117:1
75 |
76 117 | / #[zerocopy(crate = "zerocopy_renamed")]
77 118 | | enum FromZeros3 {
78 119 | | A = 1,
79 120 | | B,
80 121 | | }
81 | |_^
82
83 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
84 --> tests/ui-nightly/enum.rs:124:1
85 |
86 124 | / #[zerocopy(crate = "zerocopy_renamed")]
87 125 | | #[repr(u8)]
88 126 | | enum FromZeros4 {
89 127 | | A = 1,
90 128 | | B = 2,
91 129 | | }
92 | |_^
93
94 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
95 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.
96 --> tests/ui-nightly/enum.rs:134:1
97 |
98 134 | / #[zerocopy(crate = "zerocopy_renamed")]
99 135 | | #[repr(i8)]
100 136 | | enum FromZeros5 {
101 137 | | A = NEGATIVE_ONE,
102 138 | | B,
103 139 | | }
104 | |_^
105
106 error: FromZeros only supported on enums with a variant that has a discriminant of `0`
107 --> tests/ui-nightly/enum.rs:151:1
108 |
109 151 | / #[zerocopy(crate = "zerocopy_renamed")]
110 152 | | #[repr(u8)]
111 153 | | enum FromZeros7 {
112 154 | | A = 1,
113 155 | | B(NotFromZeros),
114 156 | | }
115 | |_^
116
117 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
118 --> tests/ui-nightly/enum.rs:162:10
119 |
120 162 | #[derive(FromBytes)]
121 | ^^^^^^^^^
122 |
123 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
124
125 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
126 --> tests/ui-nightly/enum.rs:170:8
127 |
128 170 | #[repr(C)]
129 | ^
130
131 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
132 --> tests/ui-nightly/enum.rs:177:8
133 |
134 177 | #[repr(usize)]
135 | ^^^^^
136
137 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
138 --> tests/ui-nightly/enum.rs:184:8
139 |
140 184 | #[repr(isize)]
141 | ^^^^^
142
143 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
144 --> tests/ui-nightly/enum.rs:191:8
145 |
146 191 | #[repr(u32)]
147 | ^^^
148
149 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
150 --> tests/ui-nightly/enum.rs:198:8
151 |
152 198 | #[repr(i32)]
153 | ^^^
154
155 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
156 --> tests/ui-nightly/enum.rs:205:8
157 |
158 205 | #[repr(u64)]
159 | ^^^
160
161 error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16`
162 --> tests/ui-nightly/enum.rs:212:8
163 |
164 212 | #[repr(i64)]
165 | ^^^
166
167 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
168 --> tests/ui-nightly/enum.rs:483:10
169 |
170 483 | #[derive(Unaligned)]
171 | ^^^^^^^^^
172 |
173 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
174
175 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
176 --> tests/ui-nightly/enum.rs:490:10
177 |
178 490 | #[derive(Unaligned)]
179 | ^^^^^^^^^
180 |
181 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
182
183 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
184 --> tests/ui-nightly/enum.rs:497:10
185 |
186 497 | #[derive(Unaligned)]
187 | ^^^^^^^^^
188 |
189 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
190
191 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
192 --> tests/ui-nightly/enum.rs:504:10
193 |
194 504 | #[derive(Unaligned)]
195 | ^^^^^^^^^
196 |
197 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
198
199 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
200 --> tests/ui-nightly/enum.rs:511:10
201 |
202 511 | #[derive(Unaligned)]
203 | ^^^^^^^^^
204 |
205 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
206
207 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
208 --> tests/ui-nightly/enum.rs:518:10
209 |
210 518 | #[derive(Unaligned)]
211 | ^^^^^^^^^
212 |
213 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
214
215 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
216 --> tests/ui-nightly/enum.rs:525:10
217 |
218 525 | #[derive(Unaligned)]
219 | ^^^^^^^^^
220 |
221 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
222
223 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
224 --> tests/ui-nightly/enum.rs:532:10
225 |
226 532 | #[derive(Unaligned)]
227 | ^^^^^^^^^
228 |
229 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
230
231 error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment
232 --> tests/ui-nightly/enum.rs:539:10
233 |
234 539 | #[derive(Unaligned)]
235 | ^^^^^^^^^
236 |
237 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info)
238
239 error: cannot derive `Unaligned` on type with alignment greater than 1
240 --> tests/ui-nightly/enum.rs:548:12
241 |
242 548 | #[repr(u8, align(2))]
243 | ^^^^^^^^
244
245 error: cannot derive `Unaligned` on type with alignment greater than 1
246 --> tests/ui-nightly/enum.rs:555:12
247 |
248 555 | #[repr(i8, align(2))]
249 | ^^^^^^^^
250
251 error: this conflicts with another representation hint
252 --> tests/ui-nightly/enum.rs:562:8
253 |
254 562 | #[repr(align(1), align(2))]
255 | ^^^^^^^^^^^^^^^^^^
256
257 error: this conflicts with another representation hint
258 --> tests/ui-nightly/enum.rs:569:8
259 |
260 569 | #[repr(align(2), align(4))]
261 | ^^^^^^^^^^^^^^^^^^
262
263 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
264 --> tests/ui-nightly/enum.rs:606:10
265 |
266 606 | #[derive(IntoBytes)]
267 | ^^^^^^^^^
268 |
269 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
270
271 error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout
272 --> tests/ui-nightly/enum.rs:613:10
273 |
274 613 | #[derive(IntoBytes)]
275 | ^^^^^^^^^
276 |
277 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
278
279 error: generic parameters may not be used in const operations
280 --> tests/ui-nightly/enum.rs:623:7
281 |
282 623 | A(T),
283 | ^ cannot perform const operation using `T`
284 |
285 = note: type parameters may not be used in const expressions
286 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
287
288 error[E0565]: meta item in `repr` must be an identifier
289 --> tests/ui-nightly/enum.rs:20:1
290 |
291 20 | #[repr("foo")]
292 | ^^^^^^^^^^^^^^
293
294 error[E0552]: unrecognized representation hint
295 --> tests/ui-nightly/enum.rs:27:8
296 |
297 27 | #[repr(foo)]
298 | ^^^
299 |
300 = help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
301 = note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations>
302
303 error[E0566]: conflicting representation hints
304 --> tests/ui-nightly/enum.rs:41:8
305 |
306 41 | #[repr(u8, u16)]
307 | ^^ ^^^
308 |
309 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
310 = note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
311 = note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default
312
313 error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied
314 --> tests/ui-nightly/enum.rs:56:10
315 |
316 56 | #[derive(Immutable)]
317 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>`
318 |
319 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>`
320 = help: the following other types implement trait `Immutable`:
321 &T
322 &mut T
323 ()
324 (A, B)
325 (A, B, C)
326 (A, B, C, D)
327 (A, B, C, D, E)
328 (A, B, C, D, E, F)
329 and $N others
330 = help: see issue #48214
331 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
332 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
333 |
334 9 + #![feature(trivial_bounds)]
335 |
336
337 error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied
338 --> tests/ui-nightly/enum.rs:66:10
339 |
340 66 | #[derive(Immutable)]
341 | ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>`
342 |
343 = note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>`
344 = help: the following other types implement trait `Immutable`:
345 &T
346 &mut T
347 ()
348 (A, B)
349 (A, B, C)
350 (A, B, C, D)
351 (A, B, C, D, E)
352 (A, B, C, D, E, F)
353 and $N others
354 = help: see issue #48214
355 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info)
356 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
357 |
358 9 + #![feature(trivial_bounds)]
359 |
360
361 error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied
362 --> tests/ui-nightly/enum.rs:92:10
363 |
364 92 | #[derive(TryFromBytes)]
365 | ^^^^^^^^^^^^ unsatisfied trait bound
366 |
367 help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes`
368 --> tests/ui-nightly/enum.rs:90:1
369 |
370 90 | struct NotTryFromBytes;
371 | ^^^^^^^^^^^^^^^^^^^^^^
372 = note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes`
373 = help: the following other types implement trait `TryFromBytes`:
374 ()
375 (A, B)
376 (A, B, C)
377 (A, B, C, D)
378 (A, B, C, D, E)
379 (A, B, C, D, E, F)
380 (A, B, C, D, E, F, G)
381 (A, B, C, D, E, F, G, H)
382 and $N others
383 = help: see issue #48214
384 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
385 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
386 |
387 9 + #![feature(trivial_bounds)]
388 |
389
390 error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied
391 --> tests/ui-nightly/enum.rs:143:10
392 |
393 143 | #[derive(FromZeros)]
394 | ^^^^^^^^^ unsatisfied trait bound
395 |
396 help: the trait `TryFromBytes` is not implemented for `NotFromZeros`
397 --> tests/ui-nightly/enum.rs:141:1
398 |
399 141 | struct NotFromZeros;
400 | ^^^^^^^^^^^^^^^^^^^
401 = note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros`
402 = help: the following other types implement trait `TryFromBytes`:
403 ()
404 (A, B)
405 (A, B, C)
406 (A, B, C, D)
407 (A, B, C, D, E)
408 (A, B, C, D, E, F)
409 (A, B, C, D, E, F, G)
410 (A, B, C, D, E, F, G, H)
411 and $N others
412 = help: see issue #48214
413 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
414 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
415 |
416 9 + #![feature(trivial_bounds)]
417 |
418
419 error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied
420 --> tests/ui-nightly/enum.rs:143:10
421 |
422 143 | #[derive(FromZeros)]
423 | ^^^^^^^^^ unsatisfied trait bound
424 |
425 help: the trait `FromZeros` is not implemented for `NotFromZeros`
426 --> tests/ui-nightly/enum.rs:141:1
427 |
428 141 | struct NotFromZeros;
429 | ^^^^^^^^^^^^^^^^^^^
430 = note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros`
431 = help: the following other types implement trait `FromZeros`:
432 ()
433 (A, B)
434 (A, B, C)
435 (A, B, C, D)
436 (A, B, C, D, E)
437 (A, B, C, D, E, F)
438 (A, B, C, D, E, F, G)
439 (A, B, C, D, E, F, G, H)
440 and $N others
441 = help: see issue #48214
442 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info)
443 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
444 |
445 9 + #![feature(trivial_bounds)]
446 |
447
448 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
449 --> tests/ui-nightly/enum.rs:217:10
450 |
451 217 | #[derive(FromBytes)]
452 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
453 |
454 = note: Consider adding `#[derive(FromBytes)]` to `bool`
455 = help: the following other types implement trait `FromBytes`:
456 ()
457 (A, B)
458 (A, B, C)
459 (A, B, C, D)
460 (A, B, C, D, E)
461 (A, B, C, D, E, F)
462 (A, B, C, D, E, F, G)
463 (A, B, C, D, E, F, G, H)
464 and $N others
465 = help: see issue #48214
466 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
467 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
468 |
469 9 + #![feature(trivial_bounds)]
470 |
471
472 error[E0277]: `IntoBytes1` has 1 total byte(s) of padding
473 --> tests/ui-nightly/enum.rs:578:10
474 |
475 578 | #[derive(IntoBytes)]
476 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
477 |
478 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
479 = note: consider adding explicit fields where padding would be
480 = note: consider using `#[repr(packed)]` to remove padding
481 help: the trait `PaddingFree<IntoBytes1, 1>` is not implemented for `()`
482 but trait `PaddingFree<IntoBytes1, 0>` is implemented for it
483 --> $WORKSPACE/src/util/macro_util.rs
484 |
485 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
486 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
487 = help: see issue #48214
488 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
489 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
490 |
491 9 + #![feature(trivial_bounds)]
492 |
493
494 error[E0277]: `IntoBytes2` has 3 total byte(s) of padding
495 --> tests/ui-nightly/enum.rs:591:10
496 |
497 591 | #[derive(IntoBytes)]
498 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
499 |
500 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
501 = note: consider adding explicit fields where padding would be
502 = note: consider using `#[repr(packed)]` to remove padding
503 help: the trait `PaddingFree<IntoBytes2, 3>` is not implemented for `()`
504 but trait `PaddingFree<IntoBytes2, 0>` is implemented for it
505 --> $WORKSPACE/src/util/macro_util.rs
506 |
507 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
508 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
509 = help: see issue #48214
510 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
511 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
512 |
513 9 + #![feature(trivial_bounds)]
514 |
515
516 error[E0277]: `IntoBytes3` has 2 total byte(s) of padding
517 --> tests/ui-nightly/enum.rs:598:10
518 |
519 598 | #[derive(IntoBytes)]
520 | ^^^^^^^^^ types with padding cannot implement `IntoBytes`
521 |
522 = note: consider using `zerocopy::Unalign` to lower the alignment of individual fields
523 = note: consider adding explicit fields where padding would be
524 = note: consider using `#[repr(packed)]` to remove padding
525 help: the trait `PaddingFree<IntoBytes3, 2>` is not implemented for `()`
526 but trait `PaddingFree<IntoBytes3, 0>` is implemented for it
527 --> $WORKSPACE/src/util/macro_util.rs
528 |
529 64 | impl<T: ?Sized> PaddingFree<T, 0> for () {}
530 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
531 = help: see issue #48214
532 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
533 help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
534 |
535 9 + #![feature(trivial_bounds)]
536 |
537
538 error: generic `Self` types are currently not permitted in anonymous constants
539 --> tests/ui-nightly/enum.rs:619:10
540 |
541 619 | #[derive(IntoBytes)]
542 | ^^^^^^^^^
543 |
544 note: not a concrete type
545 --> tests/ui-nightly/enum.rs:619:10
546 |
547 619 | #[derive(IntoBytes)]
548 | ^^^^^^^^^
549 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info)
550
551 error[E0277]: the trait bound `bool: FromBytes` is not satisfied
552 --> tests/ui-nightly/enum.rs:217:10
553 |
554 217 | #[derive(FromBytes)]
555 | ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool`
556 |
557 = note: Consider adding `#[derive(FromBytes)]` to `bool`
558 = help: the following other types implement trait `FromBytes`:
559 ()
560 (A, B)
561 (A, B, C)
562 (A, B, C, D)
563 (A, B, C, D, E)
564 (A, B, C, D, E, F)
565 (A, B, C, D, E, F, G)
566 (A, B, C, D, E, F, G, H)
567 and $N others
568 note: required for `FooU8` to implement `FromBytes`
569 --> tests/ui-nightly/enum.rs:217:10
570 |
571 217 | #[derive(FromBytes)]
572 | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
573 note: required by a bound in `assert_is_from_bytes`
574 --> tests/ui-nightly/enum.rs:217:10
575 |
576 217 | #[derive(FromBytes)]
577 | ^^^^^^^^^ required by this bound in `assert_is_from_bytes`
578 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)