• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `Dst: zerocopy::Immutable` is not satisfied
2  --> tests/ui-nightly/transmute-ref-dst-not-nocell.rs:23:33
3   |
423 | const DST_NOT_IMMUTABLE: &Dst = transmute_ref!(&AU16(0));
5   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^
6   |                                 |
7   |                                 the trait `zerocopy::Immutable` is not implemented for `Dst`
8   |                                 required by a bound introduced by this call
9   |
10   = note: Consider adding `#[derive(Immutable)]` to `Dst`
11   = help: the following other types implement trait `zerocopy::Immutable`:
12             &T
13             &mut T
14             ()
15             *const T
16             *mut T
17             AU16
18             Box<T>
19             F32<O>
20           and $N others
21note: required by a bound in `AssertDstIsImmutable`
22  --> tests/ui-nightly/transmute-ref-dst-not-nocell.rs:23:33
23   |
2423 | const DST_NOT_IMMUTABLE: &Dst = transmute_ref!(&AU16(0));
25   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertDstIsImmutable`
26   = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
27