| 1 |
error[E0277]: the trait bound `NotZerocopy<u32>: FromBytes` is not satisfied |
| 2 |
--> $DIR/include_value.rs:17:5 |
| 3 |
| |
| 4 |
17 | zerocopy::include_value!("../../testdata/include_value/data"); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 6 |
| |
| 7 |
help: the trait `FromBytes` is not implemented for `NotZerocopy<u32>` |
| 8 |
--> $DIR/../include.rs:15:5 |
| 9 |
| |
| 10 |
15 | pub struct NotZerocopy<T = ()>(pub T); |
| 11 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 |
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy<u32>` |
| 13 |
= help: the following other types implement trait `FromBytes`: |
| 14 |
() |
| 15 |
(A, B) |
| 16 |
(A, B, C) |
| 17 |
(A, B, C, D) |
| 18 |
(A, B, C, D, E) |
| 19 |
(A, B, C, D, E, F) |
| 20 |
(A, B, C, D, E, F, G) |
| 21 |
(A, B, C, D, E, F, G, H) |
| 22 |
and 79 others |
| 23 |
note: required by a bound in `NOT_FROM_BYTES::transmute` |
| 24 |
--> $DIR/include_value.rs:17:5 |
| 25 |
| |
| 26 |
17 | zerocopy::include_value!("../../testdata/include_value/data"); |
| 27 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 |
| | |
| 29 |
| required by a bound in this function |
| 30 |
| required by this bound in `transmute` |
| 31 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 32 |
= note: consider using `--verbose` to print the full type name to the console |
| 33 |
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `zerocopy::include_value` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 34 |
|
| 35 |
error: aborting due to 1 previous error |
| 36 |
|
| 37 |
For more information about this error, try `rustc --explain E0277`. |