Debian Codegraph @

third_party/rust/zerocopy/tests/ui-msrv/transmute-ref-dst-not-frombytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy: FromBytes` is not satisfied
2 --> tests/ui-msrv/transmute-ref-dst-not-frombytes.rs:18:42
3 |
4 18 | const DST_NOT_FROM_BYTES: &NotZerocopy = transmute_ref!(&AU16(0));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromBytes` is not implemented for `NotZerocopy`
6 |
7 note: required by a bound in `AssertIsFromBytes`
8 --> tests/ui-msrv/transmute-ref-dst-not-frombytes.rs:18:42
9 |
10 18 | const DST_NOT_FROM_BYTES: &NotZerocopy = transmute_ref!(&AU16(0));
11 | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `AssertIsFromBytes`
12 = note: this error originates in the macro `transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)