| 1 |
error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied |
| 2 |
--> $DIR/transmute.rs:17:41 |
| 3 |
| |
| 4 |
17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0)); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
note: required by a bound in `DST_NOT_FROM_BYTES::transmute` |
| 8 |
--> $DIR/transmute.rs:17:41 |
| 9 |
| |
| 10 |
17 | const DST_NOT_FROM_BYTES: NotZerocopy = transmute!(AU16(0)); |
| 11 |
| ^^^^^^^^^^^^^^^^^^^ |
| 12 |
| | |
| 13 |
| required by a bound in this |
| 14 |
| required by this bound in `DST_NOT_FROM_BYTES::transmute` |
| 15 |
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 16 |
|
| 17 |
error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied |
| 18 |
--> $DIR/transmute.rs:21:32 |
| 19 |
| |
| 20 |
21 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0))); |
| 21 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>` |
| 22 |
| |
| 23 |
note: required by a bound in `SRC_NOT_AS_BYTES::transmute` |
| 24 |
--> $DIR/transmute.rs:21:32 |
| 25 |
| |
| 26 |
21 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0))); |
| 27 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 |
| | |
| 29 |
| required by a bound in this |
| 30 |
| required by this bound in `SRC_NOT_AS_BYTES::transmute` |
| 31 |
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 32 |
|
| 33 |
error: aborting due to 2 previous errors |
| 34 |
|
| 35 |
For more information about this error, try `rustc --explain E0277`. |