| 1 |
error[E0277]: the trait bound `NotZerocopy<u32>: zerocopy::FromBytes` is not satisfied |
| 2 |
--> tests/ui-stable/include_value_not_from_bytes.rs:19:42 |
| 3 |
| |
| 4 |
19 | const NOT_FROM_BYTES: NotZerocopy<u32> = include_value!("../../testdata/include_value/data"); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy<u32>` |
| 6 |
| |
| 7 |
= note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy<u32>` |
| 8 |
= help: the following other types implement trait `zerocopy::FromBytes`: |
| 9 |
() |
| 10 |
AU16 |
| 11 |
AtomicI16 |
| 12 |
AtomicI32 |
| 13 |
AtomicI64 |
| 14 |
AtomicI8 |
| 15 |
AtomicIsize |
| 16 |
AtomicU16 |
| 17 |
and $N others |
| 18 |
note: required by a bound in `NOT_FROM_BYTES::transmute` |
| 19 |
--> tests/ui-stable/include_value_not_from_bytes.rs:19:42 |
| 20 |
| |
| 21 |
19 | const NOT_FROM_BYTES: NotZerocopy<u32> = include_value!("../../testdata/include_value/data"); |
| 22 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 23 |
| | |
| 24 |
| required by a bound in this function |
| 25 |
| required by this bound in `transmute` |
| 26 |
= note: this error originates in the macro `$crate::transmute` which comes from the expansion of the macro `include_value` (in Nightly builds, run with -Z macro-backtrace for more info) |