Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied
2 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:23:34
3 |
4 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(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 `Src`
11 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:20:1
12 |
13 20 | struct Src(AU16);
14 | ^^^^^^^^^^
15 = note: Consider adding `#[derive(Immutable)]` to `Src`
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 `AssertSrcIsImmutable`
27 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:23:34
28 |
29 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
30 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable`
31 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
32
33 error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied
34 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:23:34
35 |
36 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
38 |
39 help: the trait `zerocopy::Immutable` is not implemented for `Src`
40 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:20:1
41 |
42 20 | struct Src(AU16);
43 | ^^^^^^^^^^
44 = note: Consider adding `#[derive(Immutable)]` to `Src`
45 = help: the following other types implement trait `zerocopy::Immutable`:
46 &T
47 &mut T
48 ()
49 *const T
50 *mut T
51 AU16
52 Box<T>
53 F32<O>
54 and $N others
55 note: required by a bound in `AssertSrcIsImmutable`
56 --> tests/ui-nightly/transmute-ref-src-not-nocell.rs:23:34
57 |
58 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable`
60 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)