Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
2 --> tests/ui-stable/transmute-dst-not-frombytes.rs:17:41
3 |
4 17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
5 | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
6 |
7 help: the trait `FromBytes` is not implemented for `NotZerocopy`
8 --> tests/ui-stable/../include.rs
9 |
10 | pub struct NotZerocopy<T = ()>(pub T);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy`
13 = help: the following other types implement trait `FromBytes`:
14 ()
15 (A, B)
16 (A, B, C)
17 (A, B, C, D)
18 (A, B, C, D, E)
19 (A, B, C, D, E, F)
20 (A, B, C, D, E, F, G)
21 (A, B, C, D, E, F, G, H)
22 and $N others
23 note: required by a bound in `DST_NOT_FROM_BYTES::transmute`
24 --> tests/ui-stable/transmute-dst-not-frombytes.rs:17:41
25 |
26 17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0));
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 `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)