Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/transmute-dst-not-frombytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied
2 --> tests/ui-stable/transmute-dst-not-frombytes.rs:19:41
3 |
4 19 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
5 | ^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy`
6 |
7 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
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 `DST_NOT_FROM_BYTES::transmute`
19 --> tests/ui-stable/transmute-dst-not-frombytes.rs:19:41
20 |
21 19 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
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 `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)