• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
2  --> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:58
3   |
417 |     let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
5   |                                                          ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
6   |
7note: 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
14error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
15  --> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:33
16   |
1717 |     let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
18   |                                 ^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
19   |
20note: 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
26error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied
27  --> tests/ui-msrv/try_transmute-dst-not-tryfrombytes.rs:17:58
28   |
2917 |     let dst_not_try_from_bytes: Result<NotZerocopy, _> = try_transmute!(AU16(0));
30   |                                                          ^^^^^^^^^^^^^^^^^^^^^^^ the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy`
31   |
32note: 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)
38