Debian Codegraph @

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

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