Debian Codegraph @

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

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