• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `Dst: IntoBytes` is not satisfied
2  --> tests/ui-stable/transmute-mut-dst-not-intobytes.rs:24:36
3   |
424 | const DST_NOT_AS_BYTES: &mut Dst = transmute_mut!(&mut Src);
5   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^
6   |                                    |
7   |                                    the trait `IntoBytes` is not implemented for `Dst`
8   |                                    required by a bound introduced by this call
9   |
10   = note: Consider adding `#[derive(IntoBytes)]` to `Dst`
11   = help: the following other types implement trait `IntoBytes`:
12             ()
13             AtomicBool
14             AtomicI16
15             AtomicI32
16             AtomicI64
17             AtomicI8
18             AtomicIsize
19             AtomicU16
20           and $N others
21note: required by a bound in `AssertDstIsIntoBytes`
22  --> tests/ui-stable/transmute-mut-dst-not-intobytes.rs:24:36
23   |
2424 | const DST_NOT_AS_BYTES: &mut Dst = transmute_mut!(&mut Src);
25   |                                    ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsIntoBytes`
26   = note: this error originates in the macro `transmute_mut` (in Nightly builds, run with -Z macro-backtrace for more info)
27