Debian Codegraph @

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

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