• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `NotZerocopy<AU16>: zerocopy::IntoBytes` is not satisfied
2  --> tests/ui-msrv/transmute-src-not-intobytes.rs:19:32
3   |
419 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
5   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy<AU16>`
6   |
7note: required by `AssertIsIntoBytes`
8  --> tests/ui-msrv/transmute-src-not-intobytes.rs:19:32
9   |
1019 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
11   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12   = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14error[E0277]: the trait bound `NotZerocopy<AU16>: zerocopy::IntoBytes` is not satisfied
15  --> tests/ui-msrv/transmute-src-not-intobytes.rs:19:32
16   |
1719 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
18   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy<AU16>`
19   |
20note: required by a bound in `AssertIsIntoBytes`
21  --> tests/ui-msrv/transmute-src-not-intobytes.rs:19:32
22   |
2319 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0)));
24   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsIntoBytes`
25   = note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info)
26