| 1 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 2 |
--> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:58 |
| 3 |
| |
| 4 |
17 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
note: required by a bound in `try_transmute` |
| 8 |
--> src/util/macro_util.rs |
| 9 |
| |
| 10 |
| Dst: TryFromBytes, |
| 11 |
| ^^^^^^^^^^^^ required by this bound in `try_transmute` |
| 12 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 13 |
|
| 14 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 15 |
--> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:33 |
| 16 |
| |
| 17 |
17 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 18 |
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 19 |
| |
| 20 |
note: required by a bound in `ValidityError` |
| 21 |
--> src/error.rs |
| 22 |
| |
| 23 |
| pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 24 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 25 |
|
| 26 |
error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied |
| 27 |
--> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:58 |
| 28 |
| |
| 29 |
17 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 30 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` |
| 31 |
| |
| 32 |
note: required by a bound in `ValidityError` |
| 33 |
--> src/error.rs |
| 34 |
| |
| 35 |
| pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 36 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 37 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |