| 1 |
error: this conflicts with another representation hint |
| 2 |
--> tests/ui-stable/struct.rs:185:11 |
| 3 |
| |
| 4 |
185 | #[repr(C, C)] // zerocopy-derive conservatively treats these as conflicting reprs |
| 5 |
| ^ |
| 6 |
|
| 7 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 8 |
--> tests/ui-stable/struct.rs:190:10 |
| 9 |
| |
| 10 |
190 | #[derive(IntoBytes)] |
| 11 |
| ^^^^^^^^^ |
| 12 |
| |
| 13 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 14 |
|
| 15 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 16 |
--> tests/ui-stable/struct.rs:196:10 |
| 17 |
| |
| 18 |
196 | #[derive(IntoBytes)] |
| 19 |
| ^^^^^^^^^ |
| 20 |
| |
| 21 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 22 |
|
| 23 |
error: must have a non-align #[repr(...)] attribute in order to guarantee this type's memory layout |
| 24 |
--> tests/ui-stable/struct.rs:221:10 |
| 25 |
| |
| 26 |
221 | #[derive(IntoBytes)] |
| 27 |
| ^^^^^^^^^ |
| 28 |
| |
| 29 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 30 |
|
| 31 |
error: cannot derive `Unaligned` on type with alignment greater than 1 |
| 32 |
--> tests/ui-stable/struct.rs:234:11 |
| 33 |
| |
| 34 |
234 | #[repr(C, align(2))] |
| 35 |
| ^^^^^ |
| 36 |
|
| 37 |
error: this conflicts with another representation hint |
| 38 |
--> tests/ui-stable/struct.rs:239:8 |
| 39 |
| |
| 40 |
239 | #[repr(transparent, align(2))] |
| 41 |
| ^^^^^^^^^^^ |
| 42 |
|
| 43 |
error: this conflicts with another representation hint |
| 44 |
--> tests/ui-stable/struct.rs:246:16 |
| 45 |
| |
| 46 |
246 | #[repr(packed, align(2))] |
| 47 |
| ^^^^^ |
| 48 |
|
| 49 |
error: this conflicts with another representation hint |
| 50 |
--> tests/ui-stable/struct.rs:251:18 |
| 51 |
| |
| 52 |
251 | #[repr(align(1), align(2))] |
| 53 |
| ^^^^^ |
| 54 |
|
| 55 |
error: this conflicts with another representation hint |
| 56 |
--> tests/ui-stable/struct.rs:256:18 |
| 57 |
| |
| 58 |
256 | #[repr(align(2), align(4))] |
| 59 |
| ^^^^^ |
| 60 |
|
| 61 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 62 |
--> tests/ui-stable/struct.rs:259:10 |
| 63 |
| |
| 64 |
259 | #[derive(Unaligned)] |
| 65 |
| ^^^^^^^^^ |
| 66 |
| |
| 67 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 68 |
|
| 69 |
error: must have #[repr(C)], #[repr(transparent)], or #[repr(packed)] attribute in order to guarantee this type's alignment |
| 70 |
--> tests/ui-stable/struct.rs:263:10 |
| 71 |
| |
| 72 |
263 | #[derive(Unaligned)] |
| 73 |
| ^^^^^^^^^ |
| 74 |
| |
| 75 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 76 |
|
| 77 |
error: this conflicts with another representation hint |
| 78 |
--> tests/ui-stable/struct.rs:275:8 |
| 79 |
| |
| 80 |
275 | #[repr(C, packed(2))] |
| 81 |
| ^ |
| 82 |
|
| 83 |
error[E0692]: transparent struct cannot have other repr hints |
| 84 |
--> tests/ui-stable/struct.rs:239:8 |
| 85 |
| |
| 86 |
239 | #[repr(transparent, align(2))] |
| 87 |
| ^^^^^^^^^^^ ^^^^^^^^ |
| 88 |
|
| 89 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 90 |
--> tests/ui-stable/struct.rs:31:10 |
| 91 |
| |
| 92 |
31 | #[derive(KnownLayout)] |
| 93 |
| ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 94 |
| |
| 95 |
= help: within `KL00`, the trait `Sized` is not implemented for `[u8]` |
| 96 |
note: required because it appears within the type `KL00` |
| 97 |
--> tests/ui-stable/struct.rs:33:8 |
| 98 |
| |
| 99 |
33 | struct KL00(u8, NotKnownLayoutDst); |
| 100 |
| ^^^^ |
| 101 |
= help: see issue #48214 |
| 102 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 103 |
|
| 104 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 105 |
--> tests/ui-stable/struct.rs:37:10 |
| 106 |
| |
| 107 |
37 | #[derive(KnownLayout)] |
| 108 |
| ^^^^^^^^^^^ doesn't have a size known at compile-time |
| 109 |
| |
| 110 |
= help: within `KL02`, the trait `Sized` is not implemented for `[u8]` |
| 111 |
note: required because it appears within the type `KL02` |
| 112 |
--> tests/ui-stable/struct.rs:39:8 |
| 113 |
| |
| 114 |
39 | struct KL02(u8, [u8]); |
| 115 |
| ^^^^ |
| 116 |
= help: see issue #48214 |
| 117 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 118 |
|
| 119 |
error[E0277]: the trait bound `NotKnownLayoutDst: zerocopy_renamed::KnownLayout` is not satisfied |
| 120 |
--> tests/ui-stable/struct.rs:43:10 |
| 121 |
| |
| 122 |
43 | #[derive(KnownLayout)] |
| 123 |
| ^^^^^^^^^^^ unsatisfied trait bound |
| 124 |
| |
| 125 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayoutDst` |
| 126 |
--> tests/ui-stable/struct.rs:27:1 |
| 127 |
| |
| 128 |
27 | struct NotKnownLayoutDst([u8]); |
| 129 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 130 |
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayoutDst` |
| 131 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 132 |
&T |
| 133 |
&mut T |
| 134 |
() |
| 135 |
*const T |
| 136 |
*mut T |
| 137 |
AU16 |
| 138 |
AtomicBool |
| 139 |
AtomicI16 |
| 140 |
and $N others |
| 141 |
= help: see issue #48214 |
| 142 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 143 |
|
| 144 |
error[E0277]: the trait bound `NotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied |
| 145 |
--> tests/ui-stable/struct.rs:50:10 |
| 146 |
| |
| 147 |
50 | #[derive(KnownLayout)] |
| 148 |
| ^^^^^^^^^^^ unsatisfied trait bound |
| 149 |
| |
| 150 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `NotKnownLayout` |
| 151 |
--> tests/ui-stable/struct.rs:25:1 |
| 152 |
| |
| 153 |
25 | struct NotKnownLayout; |
| 154 |
| ^^^^^^^^^^^^^^^^^^^^^ |
| 155 |
= note: Consider adding `#[derive(KnownLayout)]` to `NotKnownLayout` |
| 156 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 157 |
&T |
| 158 |
&mut T |
| 159 |
() |
| 160 |
*const T |
| 161 |
*mut T |
| 162 |
AU16 |
| 163 |
AtomicBool |
| 164 |
AtomicI16 |
| 165 |
and $N others |
| 166 |
= help: see issue #48214 |
| 167 |
= note: this error originates in the derive macro `KnownLayout` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 168 |
|
| 169 |
error[E0277]: the trait bound `UnsafeCell<()>: zerocopy_renamed::Immutable` is not satisfied |
| 170 |
--> tests/ui-stable/struct.rs:59:10 |
| 171 |
| |
| 172 |
59 | #[derive(Immutable)] |
| 173 |
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<()>` |
| 174 |
| |
| 175 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>` |
| 176 |
= help: the following other types implement trait `zerocopy_renamed::Immutable`: |
| 177 |
&T |
| 178 |
&mut T |
| 179 |
() |
| 180 |
(A, B) |
| 181 |
(A, B, C) |
| 182 |
(A, B, C, D) |
| 183 |
(A, B, C, D, E) |
| 184 |
(A, B, C, D, E, F) |
| 185 |
and $N others |
| 186 |
= help: see issue #48214 |
| 187 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 188 |
|
| 189 |
error[E0277]: the trait bound `UnsafeCell<u8>: zerocopy_renamed::Immutable` is not satisfied |
| 190 |
--> tests/ui-stable/struct.rs:65:10 |
| 191 |
| |
| 192 |
65 | #[derive(Immutable)] |
| 193 |
| ^^^^^^^^^ the trait `zerocopy_renamed::Immutable` is not implemented for `UnsafeCell<u8>` |
| 194 |
| |
| 195 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>` |
| 196 |
= help: the following other types implement trait `zerocopy_renamed::Immutable`: |
| 197 |
&T |
| 198 |
&mut T |
| 199 |
() |
| 200 |
(A, B) |
| 201 |
(A, B, C) |
| 202 |
(A, B, C, D) |
| 203 |
(A, B, C, D, E) |
| 204 |
(A, B, C, D, E, F) |
| 205 |
and $N others |
| 206 |
= note: required for `[UnsafeCell<u8>; 0]` to implement `zerocopy_renamed::Immutable` |
| 207 |
= help: see issue #48214 |
| 208 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 209 |
|
| 210 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 211 |
--> tests/ui-stable/struct.rs:78:1 |
| 212 |
| |
| 213 |
78 | struct TryFromBytesPacked { |
| 214 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 215 |
| |
| 216 |
note: `AU16` has a `#[repr(align)]` attribute |
| 217 |
--> tests/ui-stable/../include.rs |
| 218 |
| |
| 219 |
| pub struct AU16(pub u16); |
| 220 |
| ^^^^^^^^^^^^^^^ |
| 221 |
|
| 222 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 223 |
--> tests/ui-stable/struct.rs:85:1 |
| 224 |
| |
| 225 |
85 | struct TryFromBytesPackedN { |
| 226 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 227 |
| |
| 228 |
note: `AU16` has a `#[repr(align)]` attribute |
| 229 |
--> tests/ui-stable/../include.rs |
| 230 |
| |
| 231 |
| pub struct AU16(pub u16); |
| 232 |
| ^^^^^^^^^^^^^^^ |
| 233 |
|
| 234 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 235 |
--> tests/ui-stable/struct.rs:92:1 |
| 236 |
| |
| 237 |
92 | struct TryFromBytesCPacked { |
| 238 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 239 |
| |
| 240 |
note: `AU16` has a `#[repr(align)]` attribute |
| 241 |
--> tests/ui-stable/../include.rs |
| 242 |
| |
| 243 |
| pub struct AU16(pub u16); |
| 244 |
| ^^^^^^^^^^^^^^^ |
| 245 |
|
| 246 |
error[E0588]: packed type cannot transitively contain a `#[repr(align)]` type |
| 247 |
--> tests/ui-stable/struct.rs:99:1 |
| 248 |
| |
| 249 |
99 | struct TryFromBytesCPackedN { |
| 250 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 251 |
| |
| 252 |
note: `AU16` has a `#[repr(align)]` attribute |
| 253 |
--> tests/ui-stable/../include.rs |
| 254 |
| |
| 255 |
| pub struct AU16(pub u16); |
| 256 |
| ^^^^^^^^^^^^^^^ |
| 257 |
|
| 258 |
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied |
| 259 |
--> tests/ui-stable/struct.rs:110:10 |
| 260 |
| |
| 261 |
110 | #[derive(IntoBytes)] |
| 262 |
| ^^^^^^^^^ unsatisfied trait bound |
| 263 |
| |
| 264 |
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` |
| 265 |
--> tests/ui-stable/../include.rs |
| 266 |
| |
| 267 |
64 | pub struct AU16(pub u16); |
| 268 |
| ^^^^^^^^^^^^^^^ |
| 269 |
= note: Consider adding `#[derive(Unaligned)]` to `AU16` |
| 270 |
= help: the following other types implement trait `zerocopy_renamed::Unaligned`: |
| 271 |
() |
| 272 |
AtomicBool |
| 273 |
AtomicI8 |
| 274 |
AtomicU8 |
| 275 |
Cell<T> |
| 276 |
F32<O> |
| 277 |
F64<O> |
| 278 |
I128<O> |
| 279 |
and $N others |
| 280 |
= help: see issue #48214 |
| 281 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 282 |
|
| 283 |
error[E0277]: `IntoBytes2` has 1 total byte(s) of padding |
| 284 |
--> tests/ui-stable/struct.rs:118:10 |
| 285 |
| |
| 286 |
118 | #[derive(IntoBytes)] |
| 287 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 288 |
| |
| 289 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 290 |
= note: consider adding explicit fields where padding would be |
| 291 |
= note: consider using `#[repr(packed)]` to remove padding |
| 292 |
help: the trait `PaddingFree<IntoBytes2, 1>` is not implemented for `()` |
| 293 |
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it |
| 294 |
--> $WORKSPACE/src/util/macro_util.rs |
| 295 |
| |
| 296 |
64 | impl<T: ?Sized> PaddingFree<T, 0> for () {} |
| 297 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 298 |
= help: see issue #48214 |
| 299 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 300 |
|
| 301 |
error[E0277]: `IntoBytes3` has 1 total byte(s) of padding |
| 302 |
--> tests/ui-stable/struct.rs:126:10 |
| 303 |
| |
| 304 |
126 | #[derive(IntoBytes)] |
| 305 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 306 |
| |
| 307 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 308 |
= note: consider adding explicit fields where padding would be |
| 309 |
= note: consider using `#[repr(packed)]` to remove padding |
| 310 |
help: the trait `PaddingFree<IntoBytes3, 1>` is not implemented for `()` |
| 311 |
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it |
| 312 |
--> $WORKSPACE/src/util/macro_util.rs |
| 313 |
| |
| 314 |
64 | impl<T: ?Sized> PaddingFree<T, 0> for () {} |
| 315 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 316 |
= help: see issue #48214 |
| 317 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 318 |
|
| 319 |
error[E0277]: the size for values of type `[u8]` cannot be known at compilation time |
| 320 |
--> tests/ui-stable/struct.rs:143:10 |
| 321 |
| |
| 322 |
143 | #[derive(IntoBytes)] |
| 323 |
| ^^^^^^^^^ doesn't have a size known at compile-time |
| 324 |
| |
| 325 |
= help: within `IntoBytes4`, the trait `Sized` is not implemented for `[u8]` |
| 326 |
note: required because it appears within the type `IntoBytes4` |
| 327 |
--> tests/ui-stable/struct.rs:146:8 |
| 328 |
| |
| 329 |
146 | struct IntoBytes4 { |
| 330 |
| ^^^^^^^^^^ |
| 331 |
= note: required for `IntoBytes4` to implement `macro_util::__size_of::Sized` |
| 332 |
note: required by a bound in `macro_util::__size_of::size_of` |
| 333 |
--> $WORKSPACE/src/util/macro_util.rs |
| 334 |
| |
| 335 |
| pub const fn size_of<T: Sized + ?core::marker::Sized>() -> usize { |
| 336 |
| ^^^^^ required by this bound in `size_of` |
| 337 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 338 |
|
| 339 |
error[E0277]: `[u8]` is unsized |
| 340 |
--> tests/ui-stable/struct.rs:148:8 |
| 341 |
| |
| 342 |
148 | b: SliceU8, |
| 343 |
| ^^^^^^^ `IntoBytes` needs all field types to be `Sized` in order to determine whether there is padding |
| 344 |
| |
| 345 |
= help: the trait `Sized` is not implemented for `[u8]` |
| 346 |
= note: consider using `#[repr(packed)]` to remove padding |
| 347 |
= note: `IntoBytes` does not require the fields of `#[repr(packed)]` types to be `Sized` |
| 348 |
= note: required for `[u8]` to implement `macro_util::__size_of::Sized` |
| 349 |
note: required by a bound in `macro_util::__size_of::size_of` |
| 350 |
--> $WORKSPACE/src/util/macro_util.rs |
| 351 |
| |
| 352 |
| pub const fn size_of<T: Sized + ?core::marker::Sized>() -> usize { |
| 353 |
| ^^^^^ required by this bound in `size_of` |
| 354 |
|
| 355 |
error[E0277]: `IntoBytes5` has one or more padding bytes |
| 356 |
--> tests/ui-stable/struct.rs:153:10 |
| 357 |
| |
| 358 |
153 | #[derive(IntoBytes)] |
| 359 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 360 |
| |
| 361 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 362 |
= note: consider adding explicit fields where padding would be |
| 363 |
= note: consider using `#[repr(packed)]` to remove padding |
| 364 |
help: the trait `DynamicPaddingFree<IntoBytes5, true>` is not implemented for `()` |
| 365 |
but trait `DynamicPaddingFree<IntoBytes5, false>` is implemented for it |
| 366 |
--> $WORKSPACE/src/util/macro_util.rs |
| 367 |
| |
| 368 |
82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {} |
| 369 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 370 |
= help: see issue #48214 |
| 371 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 372 |
|
| 373 |
error[E0277]: `IntoBytes6` has one or more padding bytes |
| 374 |
--> tests/ui-stable/struct.rs:163:10 |
| 375 |
| |
| 376 |
163 | #[derive(IntoBytes)] |
| 377 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 378 |
| |
| 379 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 380 |
= note: consider adding explicit fields where padding would be |
| 381 |
= note: consider using `#[repr(packed)]` to remove padding |
| 382 |
help: the trait `DynamicPaddingFree<IntoBytes6, true>` is not implemented for `()` |
| 383 |
but trait `DynamicPaddingFree<IntoBytes6, false>` is implemented for it |
| 384 |
--> $WORKSPACE/src/util/macro_util.rs |
| 385 |
| |
| 386 |
82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {} |
| 387 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 388 |
= help: see issue #48214 |
| 389 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 390 |
|
| 391 |
error[E0277]: `IntoBytes7` has one or more padding bytes |
| 392 |
--> tests/ui-stable/struct.rs:174:10 |
| 393 |
| |
| 394 |
174 | #[derive(IntoBytes)] |
| 395 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 396 |
| |
| 397 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 398 |
= note: consider adding explicit fields where padding would be |
| 399 |
= note: consider using `#[repr(packed)]` to remove padding |
| 400 |
help: the trait `DynamicPaddingFree<IntoBytes7, true>` is not implemented for `()` |
| 401 |
but trait `DynamicPaddingFree<IntoBytes7, false>` is implemented for it |
| 402 |
--> $WORKSPACE/src/util/macro_util.rs |
| 403 |
| |
| 404 |
82 | impl<T: ?Sized> DynamicPaddingFree<T, false> for () {} |
| 405 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 406 |
= help: see issue #48214 |
| 407 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 408 |
|
| 409 |
error[E0587]: type has conflicting packed and align representation hints |
| 410 |
--> tests/ui-stable/struct.rs:247:1 |
| 411 |
| |
| 412 |
247 | struct Unaligned3; |
| 413 |
| ^^^^^^^^^^^^^^^^^ |
| 414 |
|
| 415 |
error[E0277]: the trait bound `SplitAtNotKnownLayout: zerocopy_renamed::KnownLayout` is not satisfied |
| 416 |
--> tests/ui-stable/struct.rs:278:10 |
| 417 |
| |
| 418 |
278 | #[derive(SplitAt)] |
| 419 |
| ^^^^^^^ unsatisfied trait bound |
| 420 |
| |
| 421 |
help: the trait `zerocopy_renamed::KnownLayout` is not implemented for `SplitAtNotKnownLayout` |
| 422 |
--> tests/ui-stable/struct.rs:281:1 |
| 423 |
| |
| 424 |
281 | struct SplitAtNotKnownLayout([u8]); |
| 425 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 426 |
= note: Consider adding `#[derive(KnownLayout)]` to `SplitAtNotKnownLayout` |
| 427 |
= help: the following other types implement trait `zerocopy_renamed::KnownLayout`: |
| 428 |
&T |
| 429 |
&mut T |
| 430 |
() |
| 431 |
*const T |
| 432 |
*mut T |
| 433 |
AU16 |
| 434 |
AtomicBool |
| 435 |
AtomicI16 |
| 436 |
and $N others |
| 437 |
note: required by a bound in `SplitAt` |
| 438 |
--> $WORKSPACE/src/split_at.rs |
| 439 |
| |
| 440 |
61 | pub unsafe trait SplitAt: KnownLayout<PointerMetadata = usize> { |
| 441 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `SplitAt` |
| 442 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 443 |
|
| 444 |
error[E0277]: the trait bound `u8: SplitAt` is not satisfied |
| 445 |
--> tests/ui-stable/struct.rs:283:10 |
| 446 |
| |
| 447 |
283 | #[derive(SplitAt, KnownLayout)] |
| 448 |
| ^^^^^^^ the trait `SplitAt` is not implemented for `u8` |
| 449 |
| |
| 450 |
= note: Consider adding `#[derive(SplitAt)]` to `u8` |
| 451 |
help: the following other types implement trait `SplitAt` |
| 452 |
--> tests/ui-stable/struct.rs:278:10 |
| 453 |
| |
| 454 |
278 | #[derive(SplitAt)] |
| 455 |
| ^^^^^^^ `SplitAtNotKnownLayout` |
| 456 |
... |
| 457 |
283 | #[derive(SplitAt, KnownLayout)] |
| 458 |
| ^^^^^^^ `SplitAtSized` |
| 459 |
| |
| 460 |
::: $WORKSPACE/src/split_at.rs |
| 461 |
| |
| 462 |
| unsafe impl<T> SplitAt for [T] { |
| 463 |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `[T]` |
| 464 |
= help: see issue #48214 |
| 465 |
= note: this error originates in the derive macro `SplitAt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 466 |
|
| 467 |
error[E0277]: the trait bound `AU16: zerocopy_renamed::Unaligned` is not satisfied |
| 468 |
--> tests/ui-stable/struct.rs:216:28 |
| 469 |
| |
| 470 |
216 | is_into_bytes_11::<IntoBytes11<AU16>>(); |
| 471 |
| ^^^^^^^^^^^^^^^^^ unsatisfied trait bound |
| 472 |
| |
| 473 |
help: the trait `zerocopy_renamed::Unaligned` is not implemented for `AU16` |
| 474 |
--> tests/ui-stable/../include.rs |
| 475 |
| |
| 476 |
64 | pub struct AU16(pub u16); |
| 477 |
| ^^^^^^^^^^^^^^^ |
| 478 |
= note: Consider adding `#[derive(Unaligned)]` to `AU16` |
| 479 |
= help: the following other types implement trait `zerocopy_renamed::Unaligned`: |
| 480 |
() |
| 481 |
AtomicBool |
| 482 |
AtomicI8 |
| 483 |
AtomicU8 |
| 484 |
Cell<T> |
| 485 |
F32<O> |
| 486 |
F64<O> |
| 487 |
I128<O> |
| 488 |
and $N others |
| 489 |
note: required for `IntoBytes11<AU16>` to implement `zerocopy_renamed::IntoBytes` |
| 490 |
--> tests/ui-stable/struct.rs:204:10 |
| 491 |
| |
| 492 |
204 | #[derive(IntoBytes)] |
| 493 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 494 |
note: required by a bound in `is_into_bytes_11` |
| 495 |
--> tests/ui-stable/struct.rs:214:24 |
| 496 |
| |
| 497 |
214 | fn is_into_bytes_11<T: IntoBytes>() { |
| 498 |
| ^^^^^^^^^ required by this bound in `is_into_bytes_11` |
| 499 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |