| 1 |
error[E0277]: the trait bound `NotZerocopy<AU16>: zerocopy::IntoBytes` is not satisfied |
| 2 |
--> tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs:19:48 |
| 3 |
| |
| 4 |
19 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy<AU16>` |
| 6 |
| |
| 7 |
note: required by a bound in `try_transmute_ref` |
| 8 |
--> src/util/macro_util.rs |
| 9 |
| |
| 10 |
| Src: IntoBytes + Immutable, |
| 11 |
| ^^^^^^^^^ required by this bound in `try_transmute_ref` |
| 12 |
= note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 13 |
|
| 14 |
error[E0277]: the trait bound `NotZerocopy<AU16>: zerocopy::Immutable` is not satisfied |
| 15 |
--> tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs:19:48 |
| 16 |
| |
| 17 |
19 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); |
| 18 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an implementor of trait `zerocopy::Immutable` |
| 19 |
| |
| 20 |
note: required by a bound in `try_transmute_ref` |
| 21 |
--> src/util/macro_util.rs |
| 22 |
| |
| 23 |
| Src: IntoBytes + Immutable, |
| 24 |
| ^^^^^^^^^ required by this bound in `try_transmute_ref` |
| 25 |
= note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |