Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-stable/transmute-ref-dst-not-nocell.stderr

raw
1 error[E0277]: the trait bound `Dst: Immutable` is not satisfied
2 --> tests/ui-stable/transmute-ref-dst-not-nocell.rs:21:33
3 |
4 21 | 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 `Immutable` is not implemented for `Dst`
11 --> tests/ui-stable/transmute-ref-dst-not-nocell.rs:18:1
12 |
13 18 | struct Dst(AU16);
14 | ^^^^^^^^^^
15 = note: Consider adding `#[derive(Immutable)]` to `Dst`
16 = help: the following other types implement trait `Immutable`:
17 &T
18 &mut T
19 ()
20 (A, B)
21 (A, B, C)
22 (A, B, C, D)
23 (A, B, C, D, E)
24 (A, B, C, D, E, F)
25 and $N others
26 note: required by a bound in `AssertDstIsImmutable`
27 --> tests/ui-stable/transmute-ref-dst-not-nocell.rs:21:33
28 |
29 21 | 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)