Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-stable/transmute-mut-dst-not-frombytes.stderr

raw
1 error[E0277]: the trait bound `Dst: FromBytes` is not satisfied
2 --> tests/ui-stable/transmute-mut-dst-not-frombytes.rs:24:38
3 |
4 24 | const DST_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Dst`
6 |
7 = note: Consider adding `#[derive(FromBytes)]` to `Dst`
8 = help: the following other types implement trait `FromBytes`:
9 ()
10 AtomicI16
11 AtomicI32
12 AtomicI64
13 AtomicI8
14 AtomicIsize
15 AtomicU16
16 AtomicU32
17 and $N others
18 note: required by a bound in `Wrap::<&'a mut Src, &'a mut Dst>::transmute_mut`
19 --> src/util/macro_util.rs
20 |
21 | pub fn transmute_mut(self) -> &'a mut Dst
22 | ------------- required by a bound in this associated function
23 ...
24 | Dst: FromBytes + IntoBytes,
25 | ^^^^^^^^^ required by this bound in `Wrap::<&mut Src, &mut Dst>::transmute_mut`
26 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)