Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/transmute-mut-src-not-frombytes.stderr

raw
1 error[E0277]: the trait bound `Src: FromBytes` is not satisfied
2 --> tests/ui-msrv/transmute-mut-src-not-frombytes.rs:24:38
3 |
4 24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Src`
6 |
7 note: required by a bound in `AssertSrcIsFromBytes`
8 --> tests/ui-msrv/transmute-mut-src-not-frombytes.rs:24:38
9 |
10 24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
12 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error[E0277]: the trait bound `Src: FromBytes` is not satisfied
15 --> tests/ui-msrv/transmute-mut-src-not-frombytes.rs:24:38
16 |
17 24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
18 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Src`
19 |
20 note: required by a bound in `AssertSrcIsFromBytes`
21 --> tests/ui-msrv/transmute-mut-src-not-frombytes.rs:24:38
22 |
23 24 | const SRC_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
24 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsFromBytes`
25 = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)