Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/include_value_not_from_bytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy<u32>: zerocopy::FromBytes` is not satisfied
2 --> tests/ui-nightly/include_value_not_from_bytes.rs:19:42
3 |
4 19 | const NOT_FROM_BYTES: NotZerocopy<u32> = include_value!("../../testdata/include_value/data");
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy<u32>`
8 --> tests/ui-nightly/../../zerocopy-derive/tests/include.rs
9 |
10 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy<u32>`
13 = help: the following other types implement trait `zerocopy::FromBytes`:
14 ()
15 AU16
16 AtomicI16
17 AtomicI32
18 AtomicI64
19 AtomicI8
20 AtomicIsize
21 AtomicU16
22 and $N others
23 note: required by a bound in `NOT_FROM_BYTES::transmute`
24 --> tests/ui-nightly/include_value_not_from_bytes.rs:19:42
25 |
26 19 | const NOT_FROM_BYTES: NotZerocopy<u32> = 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: 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)