Debian Codegraph @

debian/missing-sources/zerocopy/tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.stderr

raw
1 error[E0277]: the trait bound `NotZerocopy<AU16>: IntoBytes` is not satisfied
2 --> tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs:17:48
3 |
4 17 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0)));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoBytes` is not implemented for `NotZerocopy<AU16>`
6 |
7 note: required by a bound in `try_transmute_ref`
8 --> src/util/macro_util.rs
9 |
10 | Src: IntoBytes + 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<AU16>: Immutable` is not satisfied
15 --> tests/ui-msrv/try_transmute_ref-src-not-immutable-intobytes.rs:17:48
16 |
17 17 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0)));
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an implementor of trait `Immutable`
19 |
20 note: required by a bound in `try_transmute_ref`
21 --> src/util/macro_util.rs
22 |
23 | Src: IntoBytes + 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)