• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `Src: zerocopy::IntoBytes` is not satisfied
2  --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
3   |
423 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
5   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `Src`
6   |
7note: required by `AssertSrcIsIntoBytes`
8  --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
9   |
1023 | 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
14error[E0277]: the trait bound `Src: zerocopy::IntoBytes` is not satisfied
15  --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
16   |
1723 | const SRC_NOT_AS_BYTES: &AU16 = transmute_ref!(&Src(AU16(0)));
18   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `Src`
19   |
20note: required by a bound in `AssertSrcIsIntoBytes`
21  --> tests/ui-msrv/transmute-ref-src-not-intobytes.rs:23:33
22   |
2323 | 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)
26