| 1 |
error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied |
| 2 |
--> tests/ui-stable/transmute-mut-dst-not-intobytes.rs:24:36 |
| 3 |
| |
| 4 |
24 | const DST_NOT_AS_BYTES: &mut Dst = transmute_mut!(&mut Src); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `Dst` |
| 6 |
| |
| 7 |
= note: Consider adding `#[derive(IntoBytes)]` to `Dst` |
| 8 |
= help: the following other types implement trait `IntoBytes`: |
| 9 |
() |
| 10 |
AtomicBool |
| 11 |
AtomicI16 |
| 12 |
AtomicI32 |
| 13 |
AtomicI64 |
| 14 |
AtomicI8 |
| 15 |
AtomicIsize |
| 16 |
AtomicU16 |
| 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) |