warning: unused import: `zerocopy::KnownLayout` --> tests/ui-nightly/late_compile_pass.rs:15:5 | 15 | use zerocopy::KnownLayout; | ^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:29:10 | 29 | #[derive(TryFromBytes)] | ^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () *const T *mut T AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 and $N others = help: see issue #48214 = note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:38:10 | 38 | #[derive(FromZeros)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () *const T *mut T AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 and $N others = help: see issue #48214 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:38:10 | 38 | #[derive(FromZeros)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `FromZeros` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () *const T *mut T AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 and $N others = help: see issue #48214 = note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: zerocopy::TryFromBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::TryFromBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(TryFromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::TryFromBytes`: () *const T *mut T AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 and $N others = help: see issue #48214 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: FromZeros` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `FromZeros` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromZeros)]` to `NotZerocopy` = help: the following other types implement trait `FromZeros`: () *const T *mut T AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 and $N others = help: see issue #48214 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () AU16 AtomicI16 AtomicI32 AtomicI64 AtomicI8 AtomicIsize AtomicU16 and $N others = help: see issue #48214 = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: zerocopy::IntoBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:56:10 | 56 | #[derive(IntoBytes)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::IntoBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::IntoBytes`: () AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 AtomicI8 AtomicIsize and $N others = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:66:10 | 66 | #[derive(Unaligned)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::Unaligned` is not implemented for `AU16` --> tests/ui-nightly/../include.rs | | pub struct AU16(pub u16); | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () AtomicBool AtomicI8 AtomicU8 Cell F32 F64 I128 and $N others = help: see issue #48214 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:74:10 | 74 | #[derive(Unaligned)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::Unaligned` is not implemented for `AU16` --> tests/ui-nightly/../include.rs | | pub struct AU16(pub u16); | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () AtomicBool AtomicI8 AtomicU8 Cell F32 F64 I128 and $N others = help: see issue #48214 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `AU16: zerocopy::Unaligned` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:81:10 | 81 | #[derive(Unaligned)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::Unaligned` is not implemented for `AU16` --> tests/ui-nightly/../include.rs | | pub struct AU16(pub u16); | ^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(Unaligned)]` to `AU16` = help: the following other types implement trait `zerocopy::Unaligned`: () AtomicBool AtomicI8 AtomicU8 Cell F32 F64 I128 and $N others = help: see issue #48214 = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) help: add `#![feature(trivial_bounds)]` to the crate attributes to enable | 9 + #![feature(trivial_bounds)] | error[E0277]: the trait bound `NotZerocopy: zerocopy::FromBytes` is not satisfied --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ unsatisfied trait bound | help: the trait `zerocopy::FromBytes` is not implemented for `NotZerocopy` --> tests/ui-nightly/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(FromBytes)]` to `NotZerocopy` = help: the following other types implement trait `zerocopy::FromBytes`: () AU16 AtomicI16 AtomicI32 AtomicI64 AtomicI8 AtomicIsize AtomicU16 and $N others note: required for `FromBytes1` to implement `zerocopy::FromBytes` --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro note: required by a bound in `::is_bit_valid::assert_is_from_bytes` --> tests/ui-nightly/late_compile_pass.rs:47:10 | 47 | #[derive(FromBytes)] | ^^^^^^^^^ required by this bound in `assert_is_from_bytes` = note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info)