summaryrefslogtreecommitdiffstats
path: root/third_party/rust/zerocopy/tests/ui-msrv/transmute-mut-dst-not-frombytes.stderr
blob: 663e085a30b038d0223f7480b5034d4b49e31848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the trait bound `Dst: FromBytes` is not satisfied
  --> tests/ui-msrv/transmute-mut-dst-not-frombytes.rs:24:38
   |
24 | const DST_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `Dst`
   |
note: required by a bound in `AssertDstIsFromBytes`
  --> tests/ui-msrv/transmute-mut-dst-not-frombytes.rs:24:38
   |
24 | const DST_NOT_FROM_BYTES: &mut Dst = transmute_mut!(&mut Src);
   |                                      ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsFromBytes`
   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)