Debian Codegraph @

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

raw
1 error[E0277]: the trait bound `Src: zerocopy::IntoBytes` is not satisfied
2 --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
3 |
4 23 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `Src`
6 |
7 note: required by `AssertSrcIsIntoBytes`
8 --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
9 |
10 23 | const SRC_NOT_AS_BYTES: &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::IntoBytes` is not satisfied
15 --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
16 |
17 23 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `Src`
19 |
20 note: required by a bound in `AssertSrcIsIntoBytes`
21 --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
22 |
23 23 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertSrcIsIntoBytes`
25 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)