| 1 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 2 |
--> tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 |
| 3 |
| |
| 4 |
19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
note: required by a bound in `try_transmute_ref` |
| 8 |
--> src/util/macro_util.rs |
| 9 |
| |
| 10 |
| Dst: TryFromBytes + 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: zerocopy::Immutable` is not satisfied |
| 15 |
--> tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 |
| 16 |
| |
| 17 |
19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); |
| 18 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::Immutable` is not implemented for `NotZerocopy` |
| 19 |
| |
| 20 |
note: required by a bound in `try_transmute_ref` |
| 21 |
--> src/util/macro_util.rs |
| 22 |
| |
| 23 |
| Dst: TryFromBytes + 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) |
| 26 |
|
| 27 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 28 |
--> tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:33 |
| 29 |
| |
| 30 |
19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); |
| 31 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 32 |
| |
| 33 |
note: required by a bound in `ValidityError` |
| 34 |
--> src/error.rs |
| 35 |
| |
| 36 |
| pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 37 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 38 |
|
| 39 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 40 |
--> tests/ui-msrv/try_transmute_ref-dst-not-immutable-tryfrombytes.rs:19:59 |
| 41 |
| |
| 42 |
19 | let dst_not_try_from_bytes: Result<&NotZerocopy, _> = try_transmute_ref!(&AU16(0)); |
| 43 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 44 |
| |
| 45 |
note: required by a bound in `ValidityError` |
| 46 |
--> src/error.rs |
| 47 |
| |
| 48 |
| pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 49 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 50 |
= note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) |