Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-nightly/transmute-ref-dst-not-frombytes.stderr

raw
1 error[E0277]: the trait bound `Dst: FromBytes` is not satisfied
2 --> tests/ui-nightly/transmute-ref-dst-not-frombytes.rs:21:34
3 |
4 21 | 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 `FromBytes` is not implemented for `Dst`
11 --> tests/ui-nightly/transmute-ref-dst-not-frombytes.rs:18:1
12 |
13 18 | struct Dst(AU16);
14 | ^^^^^^^^^^
15 = note: Consider adding `#[derive(FromBytes)]` to `Dst`
16 = help: the following other types implement trait `FromBytes`:
17 ()
18 (A, B)
19 (A, B, C)
20 (A, B, C, D)
21 (A, B, C, D, E)
22 (A, B, C, D, E, F)
23 (A, B, C, D, E, F, G)
24 (A, B, C, D, E, F, G, H)
25 and $N others
26 note: required by a bound in `AssertDstIsFromBytes`
27 --> tests/ui-nightly/transmute-ref-dst-not-frombytes.rs:21:34
28 |
29 21 | 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)