Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/transmute-src-not-intobytes.stderr

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