error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:185:11 | 185 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs | ^ error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout --> tests/ui-msrv/struct.rs:190:10 | 190 | #[derive(IntoBytes)] | ^^^^^^^^^ | = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout --> tests/ui-msrv/struct.rs:196:10 | 196 | #[derive(IntoBytes)] | ^^^^^^^^^ | = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout --> tests/ui-msrv/struct.rs:221:10 | 221 | #[derive(IntoBytes)] | ^^^^^^^^^ | = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error: cannot derive `Unaligned` on type with alignment greater than 1 --> tests/ui-msrv/struct.rs:234:11 | 234 | #[repr(C, align(2))] | ^^^^^ error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:239:8 | 239 | #[repr(transparent, align(2))] | ^^^^^^^^^^^ error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:246:16 | 246 | #[repr(packed, align(2))] | ^^^^^ error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:251:18 | 251 | #[repr(align(1), align(2))] | ^^^^^ error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:256:18 | 256 | #[repr(align(2), align(4))] | ^^^^^ error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment --> tests/ui-msrv/struct.rs:259:10 | 259 | #[derive(Unaligned)] | ^^^^^^^^^ | = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment --> tests/ui-msrv/struct.rs:263:10 | 263 | #[derive(Unaligned)] | ^^^^^^^^^ | = note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) error: this conflicts with another representation hint --> tests/ui-msrv/struct.rs:275:8 | 275 | #[repr(C, packed(2))] | ^ error[E0692]: transparent struct cannot have other repr hints --> tests/ui-msrv/struct.rs:239:8 | 239 | #[repr(transparent, align(2))] | ^^^^^^^^^^^ ^^^^^^^^ error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> tests/ui-msrv/struct.rs:31:10 | 31 | #[derive(KnownLayout)] | ^^^^^^^^^^^ doesn't have a size known at compile-time | = help: within `KL00`, the trait `Sized` is not implemented for `[u8]` note: required because it appears within the type `KL00` --> tests/ui-msrv/struct.rs:33:8 | 33 | struct KL00(u8, NotKnownLayoutDst); | ^^^^ = help: see issue #48214 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> tests/ui-msrv/struct.rs:37:10 | 37 | #[derive(KnownLayout)] | ^^^^^^^^^^^ doesn't have a size known at compile-time | = help: within `KL02`, the trait `Sized` is not implemented for `[u8]` note: required because it appears within the type `KL02` --> tests/ui-msrv/struct.rs:39:8 | 39 | struct KL02(u8, [u8]); | ^^^^ = help: see issue #48214 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy_renamed::KnownLayout` is not satisfied --> tests/ui-msrv/struct.rs:43:10 | 43 | #[derive(KnownLayout)] | ^^^^^^^^^^^ the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayoutDst` | = help: see issue #48214 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `NotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied --> tests/ui-msrv/struct.rs:50:10 | 50 | #[derive(KnownLayout)] | ^^^^^^^^^^^ the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayout` | = help: see issue #48214 = note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `UnsafeCell<()>: zerocopy_renamed::Immutable` is not satisfied --> tests/ui-msrv/struct.rs:59:10 | 59 | #[derive(Immutable)] | ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<()>` | = help: see issue #48214 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `UnsafeCell: zerocopy_renamed::Immutable` is not satisfied --> tests/ui-msrv/struct.rs:65:10 | 65 | #[derive(Immutable)] | ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell` | = note: required because of the requirements on the impl of `zerocopy_renamed::Immutable` for `[UnsafeCell; 0]` = help: see issue #48214 = note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied --> tests/ui-msrv/struct.rs:110:10 | 110 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` | = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `(): PaddingFree` is not satisfied --> tests/ui-msrv/struct.rs:118:10 | 118 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `PaddingFree` is not implemented for `()` | = help: the following implementations were found: <() as PaddingFree> = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `(): PaddingFree` is not satisfied --> tests/ui-msrv/struct.rs:126:10 | 126 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `PaddingFree` is not implemented for `()` | = help: the following implementations were found: <() as PaddingFree> = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> tests/ui-msrv/struct.rs:143:10 | 143 | #[derive(IntoBytes)] | ^^^^^^^^^ doesn't have a size known at compile-time | = help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]` note: required because it appears within the type `IntoBytes4` --> tests/ui-msrv/struct.rs:146:8 | 146 | struct IntoBytes4 { | ^^^^^^^^^^ note: required by a bound in `std::mem::size_of` --> $RUST/core/src/mem/mod.rs | | pub const fn size_of() -> usize { | ^ required by this bound in `std::mem::size_of` = note: this error originates in the macro `::zerocopy_renamed::struct_padding` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the size for values of type `[u8]` cannot be known at compilation time --> tests/ui-msrv/struct.rs:148:8 | 148 | b: SliceU8, | ^^^^^^^ doesn't have a size known at compile-time | = help: the trait `Sized` is not implemented for `[u8]` note: required by a bound in `std::mem::size_of` --> $RUST/core/src/mem/mod.rs | | pub const fn size_of() -> usize { | ^ required by this bound in `std::mem::size_of` error[E0277]: the trait bound `(): DynamicPaddingFree` is not satisfied --> tests/ui-msrv/struct.rs:153:10 | 153 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `DynamicPaddingFree` is not implemented for `()` | = help: the following implementations were found: <() as DynamicPaddingFree> = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `(): DynamicPaddingFree` is not satisfied --> tests/ui-msrv/struct.rs:163:10 | 163 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `DynamicPaddingFree` is not implemented for `()` | = help: the following implementations were found: <() as DynamicPaddingFree> = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `(): DynamicPaddingFree` is not satisfied --> tests/ui-msrv/struct.rs:174:10 | 174 | #[derive(IntoBytes)] | ^^^^^^^^^ the trait `DynamicPaddingFree` is not implemented for `()` | = help: the following implementations were found: <() as DynamicPaddingFree> = help: see issue #48214 = note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied --> tests/ui-msrv/struct.rs:278:10 | 278 | #[derive(SplitAt)] | ^^^^^^^ the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout` | note: required by a bound in `SplitAt` --> $WORKSPACE/src/split_at.rs | | pub unsafe trait SplitAt: KnownLayout { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt` = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `u8: SplitAt` is not satisfied --> tests/ui-msrv/struct.rs:283:10 | 283 | #[derive(SplitAt, KnownLayout)] | ^^^^^^^ the trait `SplitAt` is not implemented for `u8` | = help: see issue #48214 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0271]: type mismatch resolving `::PointerMetadata == usize` --> tests/ui-msrv/struct.rs:283:10 | 283 | #[derive(SplitAt, KnownLayout)] | ^^^^^^^ expected `()`, found `usize` | = help: see issue #48214 = note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info)