| 1 |
error[E0277]: the trait bound `NotZerocopy<AU16>: zerocopy::IntoBytes` is not satisfied |
| 2 |
--> tests/ui-stable/transmute-src-not-intobytes.rs:19:32 |
| 3 |
| |
| 4 |
19 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0))); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 |
| | |
| 7 |
| the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy<AU16>` |
| 8 |
| required by a bound introduced by this call |
| 9 |
| |
| 10 |
= note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy<AU16>` |
| 11 |
= help: the following other types implement trait `zerocopy::IntoBytes`: |
| 12 |
() |
| 13 |
AU16 |
| 14 |
AtomicBool |
| 15 |
AtomicI16 |
| 16 |
AtomicI32 |
| 17 |
AtomicI64 |
| 18 |
AtomicI8 |
| 19 |
AtomicIsize |
| 20 |
and $N others |
| 21 |
note: required by a bound in `SRC_NOT_AS_BYTES::transmute` |
| 22 |
--> tests/ui-stable/transmute-src-not-intobytes.rs:19:32 |
| 23 |
| |
| 24 |
19 | const SRC_NOT_AS_BYTES: AU16 = transmute!(NotZerocopy(AU16(0))); |
| 25 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 |
| | |
| 27 |
| required by a bound in this function |
| 28 |
| required by this bound in `transmute` |
| 29 |
= note: this error originates in the macro `transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |