Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied
2 --> tests/ui-msrv/transmute-ref-src-not-nocell.rs:23:34
3 |
4 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an implementor of trait `zerocopy::Immutable`
6 |
7 note: required by `AssertSrcIsImmutable`
8 --> tests/ui-msrv/transmute-ref-src-not-nocell.rs:23:34
9 |
10 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error[E0277]: the trait bound `Src: zerocopy::Immutable` is not satisfied
15 --> tests/ui-msrv/transmute-ref-src-not-nocell.rs:23:34
16 |
17 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `Src`
19 |
20 note: required by a bound in `AssertSrcIsImmutable`
21 --> tests/ui-msrv/transmute-ref-src-not-nocell.rs:23:34
22 |
23 23 | const SRC_NOT_IMMUTABLE: &AU16 = transmute_ref!(&Src(AU16(0)));
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsImmutable`
25 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)