| 1 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 2 |
--> $DIR/try_transmute.rs:15:58 |
| 3 |
| |
| 4 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 5 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 6 |
| |
| 7 |
note: required by a bound in `try_transmute` |
| 8 |
--> $WORKSPACE/src/util/macro_util.rs:528:10 |
| 9 |
| |
| 10 |
528 | 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: TryFromBytes` is not satisfied |
| 15 |
--> $DIR/try_transmute.rs:15:33 |
| 16 |
| |
| 17 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 18 |
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 19 |
| |
| 20 |
note: required by a bound in `ValidityError` |
| 21 |
--> $WORKSPACE/src/error.rs:590:45 |
| 22 |
| |
| 23 |
590 | pub struct ValidityError<Src, Dst: ?Sized + TryFromBytes> { |
| 24 |
| ^^^^^^^^^^^^ required by this bound in `ValidityError` |
| 25 |
|
| 26 |
error[E0277]: the trait bound `NotZerocopy: TryFromBytes` is not satisfied |
| 27 |
--> $DIR/try_transmute.rs:15:58 |
| 28 |
| |
| 29 |
15 | let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0)); |
| 30 |
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `TryFromBytes` is not implemented for `NotZerocopy` |
| 31 |
| |
| 32 |
note: required by a bound in `ValidityError` |
| 33 |
--> $WORKSPACE/src/error.rs:590:45 |
| 34 |
| |
| 35 |
590 | 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) |
| 38 |
|
| 39 |
error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied |
| 40 |
--> $DIR/try_transmute.rs:21:47 |
| 41 |
| |
| 42 |
21 | let src_not_into_bytes: Result<AU16, _> = try_transmute!(NotZerocopy(AU16(0))); |
| 43 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>` |
| 44 |
| |
| 45 |
note: required by a bound in `try_transmute` |
| 46 |
--> $WORKSPACE/src/util/macro_util.rs:527:10 |
| 47 |
| |
| 48 |
527 | Src: IntoBytes, |
| 49 |
| ^^^^^^^^^ required by this bound in `try_transmute` |
| 50 |
= note: this error originates in the macro `try_transmute` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 51 |
|
| 52 |
error: aborting due to 4 previous errors |
| 53 |
|
| 54 |
For more information about this error, try `rustc --explain E0277`. |