| 1 |
error: this conflicts with another representation hint |
| 2 |
--> $DIR/struct.rs:210:11 |
| 3 |
| |
| 4 |
210 | #[repr(C, C)] /$RUSTUP_TOOLCHAIN/lib/rustlib/src/rust/library/core/src/mem/mod.rs:303:22 |
| 5 |
| |
| 6 |
303 | pub const fn size_of<T>() -> usize { |
| 7 |
| ^ required by this bound in `std::mem::size_of` |
| 8 |
|
| 9 |
error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes5, true>` is not satisfied |
| 10 |
--> $DIR/struct.rs:172:10 |
| 11 |
| |
| 12 |
172 | #[derive(IntoBytes)] |
| 13 |
| ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()` |
| 14 |
| |
| 15 |
= help: the following implementations were found: |
| 16 |
<() as DynamicPaddingFree<T, false>> |
| 17 |
= help: see issue #48214 |
| 18 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 19 |
|
| 20 |
error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes6, true>` is not satisfied |
| 21 |
--> $DIR/struct.rs:184:10 |
| 22 |
| |
| 23 |
184 | #[derive(IntoBytes)] |
| 24 |
| ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()` |
| 25 |
| |
| 26 |
= help: the following implementations were found: |
| 27 |
<() as DynamicPaddingFree<T, false>> |
| 28 |
= help: see issue #48214 |
| 29 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 30 |
|
| 31 |
error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes7, true>` is not satisfied |
| 32 |
--> $DIR/struct.rs:197:10 |
| 33 |
| |
| 34 |
197 | #[derive(IntoBytes)] |
| 35 |
| ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()` |
| 36 |
| |
| 37 |
= help: the following implementations were found: |
| 38 |
<() as DynamicPaddingFree<T, false>> |
| 39 |
= help: see issue #48214 |
| 40 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 41 |
|
| 42 |
error[E0277]: the trait bound `(): DynamicPaddingFree<IntoBytes13, true>` is not satisfied |
| 43 |
--> $DIR/struct.rs:260:10 |
| 44 |
| |
| 45 |
260 | #[derive(IntoBytes)] |
| 46 |
| ^^^^^^^^^ the trait `DynamicPaddingFree<IntoBytes13, true>` is not implemented for `()` |
| 47 |
| |
| 48 |
= help: the following implementations were found: |
| 49 |
<() as DynamicPaddingFree<T, false>> |
| 50 |
= help: see issue #48214 |
| 51 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 52 |
|
| 53 |
error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied |
| 54 |
--> $DIR/struct.rs:357:10 |
| 55 |
| |
| 56 |
357 | #[derive(SplitAt)] |
| 57 |
| ^^^^^^^ the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout` |
| 58 |
| |
| 59 |
note: required by a bound in `SplitAt` |
| 60 |
--> $WORKSPACE/src/split_at.rs:63:27 |
| 61 |
| |
| 62 |
63 | pub unsafe trait SplitAt: KnownLayout<PointerMetadata = usize> { |
| 63 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt` |
| 64 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 65 |
|
| 66 |
error[E0277]: the trait bound `u8: SplitAt` is not satisfied |
| 67 |
--> $DIR/struct.rs:363:10 |
| 68 |
| |
| 69 |
363 | #[derive(SplitAt, KnownLayout)] |
| 70 |
| ^^^^^^^ the trait `SplitAt` is not implemented for `u8` |
| 71 |
| |
| 72 |
= help: see issue #48214 |
| 73 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 74 |
|
| 75 |
error[E0271]: type mismatch resolving `<u8 as zerocopy_renamed::KnownLayout>::PointerMetadata == usize` |
| 76 |
--> $DIR/struct.rs:363:10 |
| 77 |
| |
| 78 |
363 | #[derive(SplitAt, KnownLayout)] |
| 79 |
| ^^^^^^^ expected `()`, found `usize` |
| 80 |
| |
| 81 |
= help: see issue #48214 |
| 82 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 83 |
|
| 84 |
error: aborting due to 39 previous errors |
| 85 |
|
| 86 |
Some errors have detailed explanations: E0271, E0277, E0692. |
| 87 |
For more information about an error, try `rustc --explain E0271`. |