Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `Dst: zerocopy::FromBytes` is not satisfied
2 --> tests/ui-stable/transmute-ref-dst-not-frombytes.rs:23:34
3 |
4 23 | const DST_NOT_FROM_BYTES: &Dst = transmute_ref!(&AU16(0));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6 | |
7 | the trait `zerocopy::FromBytes` is not implemented for `Dst`
8 | required by a bound introduced by this call
9 |
10 = note: Consider adding `#[derive(FromBytes)]` to `Dst`
11 = help: the following other types implement trait `zerocopy::FromBytes`:
12 ()
13 AU16
14 AtomicI16
15 AtomicI32
16 AtomicI64
17 AtomicI8
18 AtomicIsize
19 AtomicU16
20 and $N others
21 note: required by a bound in `AssertDstIsFromBytes`
22 --> tests/ui-stable/transmute-ref-dst-not-frombytes.rs:23:34
23 |
24 23 | const DST_NOT_FROM_BYTES: &Dst = transmute_ref!(&AU16(0));
25 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
26 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)