Debian Codegraph @

.cargo/vendor/zerocopy/tests/ui-nightly/transmute-ref-dst-not-nocell.stderr

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