error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied --> tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs:17:48 | 17 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `IntoBytes` is not implemented for `NotZerocopy` --> tests/ui-stable/../include.rs | 15 | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `IntoBytes`: () AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 AtomicI8 AtomicIsize and $N others note: required by a bound in `try_transmute_ref` --> src/util/macro_util.rs | | pub fn try_transmute_ref(src: &Src) -> Result<&Dst, ValidityError<&Src, Dst>> | ----------------- required by a bound in this function | where | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied --> tests/ui-stable/try_transmute_ref-src-not-immutable-intobytes.rs:17:48 | 17 | let src_not_into_bytes: Result<&AU16, _> = try_transmute_ref!(&NotZerocopy(AU16(0))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `Immutable` is not implemented for `NotZerocopy` --> tests/ui-stable/../include.rs | 15 | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Immutable)]` to `NotZerocopy` = help: the following other types implement trait `Immutable`: &T &mut T () (A, B) (A, B, C) (A, B, C, D) (A, B, C, D, E) (A, B, C, D, E, F) and $N others note: required by a bound in `try_transmute_ref` --> src/util/macro_util.rs | | pub fn try_transmute_ref(src: &Src) -> Result<&Dst, ValidityError<&Src, Dst>> | ----------------- required by a bound in this function | where | Src: IntoBytes + Immutable, | ^^^^^^^^^ required by this bound in `try_transmute_ref` = note: this error originates in the macro `try_transmute_ref` (in Nightly builds, run with -Z macro-backtrace for more info)