| 1 |
error: unrecognized representation hint |
| 2 |
--> $DIR/enum.rs:20:8 |
| 3 |
| |
| 4 |
20 | #[repr("foo")] |
| 5 |
| ^^^^^ |
| 6 |
|
| 7 |
error: unrecognized representation hint |
| 8 |
--> $DIR/enum.rs:29:8 |
| 9 |
| |
| 10 |
29 | #[repr(foo)] |
| 11 |
| ^^^ |
| 12 |
|
| 13 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 14 |
--> $DIR/enum.rs:36:10 |
| 15 |
| |
| 16 |
36 | #[derive(FromBytes)] |
| 17 |
| ^^^^^^^^^ |
| 18 |
| |
| 19 |
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 20 |
|
| 21 |
error: this conflicts with another representation hint |
| 22 |
--> $DIR/enum.rs:46:8 |
| 23 |
| |
| 24 |
46 | #[repr(u8, u16)] |
| 25 |
| ^^^^^^^ |
| 26 |
|
| 27 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 28 |
--> $DIR/enum.rs:53:10 |
| 29 |
| |
| 30 |
53 | #[derive(FromBytes)] |
| 31 |
| ^^^^^^^^^ |
| 32 |
| |
| 33 |
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 34 |
|
| 35 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 36 |
--> $DIR/enum.rs:88:1 |
| 37 |
| |
| 38 |
88 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 39 |
89 | | |
| 40 |
90 | | enum TryFromBytes1 { |
| 41 |
91 | | A, |
| 42 |
92 | | } |
| 43 |
| |_^ |
| 44 |
|
| 45 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 46 |
--> $DIR/enum.rs:95:1 |
| 47 |
| |
| 48 |
95 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 49 |
96 | | |
| 50 |
97 | | enum TryFromBytes2 { |
| 51 |
98 | | A, |
| 52 |
99 | | B(u8), |
| 53 |
100 | | } |
| 54 |
| |_^ |
| 55 |
|
| 56 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 57 |
--> $DIR/enum.rs:117:1 |
| 58 |
| |
| 59 |
117 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 60 |
118 | | |
| 61 |
119 | | enum FromZeros1 { |
| 62 |
120 | | A(u8), |
| 63 |
121 | | } |
| 64 |
| |_^ |
| 65 |
|
| 66 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 67 |
--> $DIR/enum.rs:124:1 |
| 68 |
| |
| 69 |
124 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 70 |
125 | | |
| 71 |
126 | | enum FromZeros2 { |
| 72 |
127 | | A, |
| 73 |
128 | | B(u8), |
| 74 |
129 | | } |
| 75 |
| |_^ |
| 76 |
|
| 77 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 78 |
--> $DIR/enum.rs:132:1 |
| 79 |
| |
| 80 |
132 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 81 |
133 | | |
| 82 |
134 | | enum FromZeros3 { |
| 83 |
135 | | A = 1, |
| 84 |
136 | | B, |
| 85 |
137 | | } |
| 86 |
| |_^ |
| 87 |
|
| 88 |
error: FromZeros only supported on enums with a variant that has a discriminant of `0` |
| 89 |
--> $DIR/enum.rs:140:1 |
| 90 |
| |
| 91 |
140 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 92 |
141 | | |
| 93 |
142 | | #[repr(u8)] |
| 94 |
143 | | enum FromZeros4 { |
| 95 |
144 | | A = 1, |
| 96 |
145 | | B = 2, |
| 97 |
146 | | } |
| 98 |
| |_^ |
| 99 |
|
| 100 |
error: FromZeros only supported on enums with a variant that has a discriminant of `0` |
| 101 |
help: This enum has discriminants which are not literal integers. One of those may define or imply which variant has a discriminant of zero. Use a literal integer to define or imply the variant with a discriminant of zero. |
| 102 |
--> $DIR/enum.rs:151:1 |
| 103 |
| |
| 104 |
151 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 105 |
152 | | |
| 106 |
153 | | #[repr(i8)] |
| 107 |
154 | | enum FromZeros5 { |
| 108 |
155 | | A = NEGATIVE_ONE, |
| 109 |
156 | | B, |
| 110 |
157 | | } |
| 111 |
| |_^ |
| 112 |
|
| 113 |
error: FromZeros only supported on enums with a variant that has a discriminant of `0` |
| 114 |
--> $DIR/enum.rs:171:1 |
| 115 |
| |
| 116 |
171 | / #[zerocopy(crate = "zerocopy_renamed")] |
| 117 |
172 | | |
| 118 |
173 | | #[repr(u8)] |
| 119 |
174 | | enum FromZeros7 { |
| 120 |
... | |
| 121 |
177 | | B(NotFromZeros), |
| 122 |
178 | | } |
| 123 |
| |_^ |
| 124 |
|
| 125 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 126 |
--> $DIR/enum.rs:184:10 |
| 127 |
| |
| 128 |
184 | #[derive(FromBytes)] |
| 129 |
| ^^^^^^^^^ |
| 130 |
| |
| 131 |
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 132 |
|
| 133 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 134 |
--> $DIR/enum.rs:193:8 |
| 135 |
| |
| 136 |
193 | #[repr(C)] |
| 137 |
| ^ |
| 138 |
|
| 139 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 140 |
--> $DIR/enum.rs:201:8 |
| 141 |
| |
| 142 |
201 | #[repr(usize)] |
| 143 |
| ^^^^^ |
| 144 |
|
| 145 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 146 |
--> $DIR/enum.rs:209:8 |
| 147 |
| |
| 148 |
209 | #[repr(isize)] |
| 149 |
| ^^^^^ |
| 150 |
|
| 151 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 152 |
--> $DIR/enum.rs:217:8 |
| 153 |
| |
| 154 |
217 | #[repr(u32)] |
| 155 |
| ^^^ |
| 156 |
|
| 157 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 158 |
--> $DIR/enum.rs:225:8 |
| 159 |
| |
| 160 |
225 | #[repr(i32)] |
| 161 |
| ^^^ |
| 162 |
|
| 163 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 164 |
--> $DIR/enum.rs:233:8 |
| 165 |
| |
| 166 |
233 | #[repr(u64)] |
| 167 |
| ^^^ |
| 168 |
|
| 169 |
error: `FromBytes` only supported on enums with `#[repr(...)]` attributes `u8`, `i8`, `u16`, or `i16` |
| 170 |
--> $DIR/enum.rs:241:8 |
| 171 |
| |
| 172 |
241 | #[repr(i64)] |
| 173 |
| ^^^ |
| 174 |
|
| 175 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 176 |
--> $DIR/enum.rs:515:10 |
| 177 |
| |
| 178 |
515 | #[derive(Unaligned)] |
| 179 |
| ^^^^^^^^^ |
| 180 |
| |
| 181 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 182 |
|
| 183 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 184 |
--> $DIR/enum.rs:523:10 |
| 185 |
| |
| 186 |
523 | #[derive(Unaligned)] |
| 187 |
| ^^^^^^^^^ |
| 188 |
| |
| 189 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 190 |
|
| 191 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 192 |
--> $DIR/enum.rs:531:10 |
| 193 |
| |
| 194 |
531 | #[derive(Unaligned)] |
| 195 |
| ^^^^^^^^^ |
| 196 |
| |
| 197 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 198 |
|
| 199 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 200 |
--> $DIR/enum.rs:539:10 |
| 201 |
| |
| 202 |
539 | #[derive(Unaligned)] |
| 203 |
| ^^^^^^^^^ |
| 204 |
| |
| 205 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 206 |
|
| 207 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 208 |
--> $DIR/enum.rs:547:10 |
| 209 |
| |
| 210 |
547 | #[derive(Unaligned)] |
| 211 |
| ^^^^^^^^^ |
| 212 |
| |
| 213 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 214 |
|
| 215 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 216 |
--> $DIR/enum.rs:555:10 |
| 217 |
| |
| 218 |
555 | #[derive(Unaligned)] |
| 219 |
| ^^^^^^^^^ |
| 220 |
| |
| 221 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 222 |
|
| 223 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 224 |
--> $DIR/enum.rs:563:10 |
| 225 |
| |
| 226 |
563 | #[derive(Unaligned)] |
| 227 |
| ^^^^^^^^^ |
| 228 |
| |
| 229 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 230 |
|
| 231 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 232 |
--> $DIR/enum.rs:571:10 |
| 233 |
| |
| 234 |
571 | #[derive(Unaligned)] |
| 235 |
| ^^^^^^^^^ |
| 236 |
| |
| 237 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 238 |
|
| 239 |
error: must have #[repr(u8)] or #[repr(i8)] attribute in order to guarantee this type's alignment |
| 240 |
--> $DIR/enum.rs:579:10 |
| 241 |
| |
| 242 |
579 | #[derive(Unaligned)] |
| 243 |
| ^^^^^^^^^ |
| 244 |
| |
| 245 |
= note: this error originates in the derive macro `Unaligned` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 246 |
|
| 247 |
error: cannot derive `Unaligned` on type with alignment greater than 1 |
| 248 |
--> $DIR/enum.rs:589:12 |
| 249 |
| |
| 250 |
589 | #[repr(u8, align(2))] |
| 251 |
| ^^^^^^^^ |
| 252 |
|
| 253 |
error: cannot derive `Unaligned` on type with alignment greater than 1 |
| 254 |
--> $DIR/enum.rs:597:12 |
| 255 |
| |
| 256 |
597 | #[repr(i8, align(2))] |
| 257 |
| ^^^^^^^^ |
| 258 |
|
| 259 |
error: this conflicts with another representation hint |
| 260 |
--> $DIR/enum.rs:605:8 |
| 261 |
| |
| 262 |
605 | #[repr(align(1), align(2))] |
| 263 |
| ^^^^^^^^^^^^^^^^^^ |
| 264 |
|
| 265 |
error: this conflicts with another representation hint |
| 266 |
--> $DIR/enum.rs:613:8 |
| 267 |
| |
| 268 |
613 | #[repr(align(2), align(4))] |
| 269 |
| ^^^^^^^^^^^^^^^^^^ |
| 270 |
|
| 271 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 272 |
--> $DIR/enum.rs:657:10 |
| 273 |
| |
| 274 |
657 | #[derive(IntoBytes)] |
| 275 |
| ^^^^^^^^^ |
| 276 |
| |
| 277 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 278 |
|
| 279 |
error: must have #[repr(C)] or #[repr(Int)] attribute in order to guarantee this type's memory layout |
| 280 |
--> $DIR/enum.rs:665:10 |
| 281 |
| |
| 282 |
665 | #[derive(IntoBytes)] |
| 283 |
| ^^^^^^^^^ |
| 284 |
| |
| 285 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 286 |
|
| 287 |
error: generic parameters may not be used in const operations |
| 288 |
--> $DIR/enum.rs:677:7 |
| 289 |
| |
| 290 |
677 | A(T), |
| 291 |
| ^ cannot perform const operation using `T` |
| 292 |
| |
| 293 |
= note: type parameters may not be used in const expressions |
| 294 |
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions |
| 295 |
|
| 296 |
error[E0565]: meta item in `repr` must be an identifier |
| 297 |
--> $DIR/enum.rs:20:1 |
| 298 |
| |
| 299 |
20 | #[repr("foo")] |
| 300 |
| ^^^^^^^^^^^^^^ |
| 301 |
|
| 302 |
error[E0552]: unrecognized representation hint |
| 303 |
--> $DIR/enum.rs:29:8 |
| 304 |
| |
| 305 |
29 | #[repr(foo)] |
| 306 |
| ^^^ |
| 307 |
| |
| 308 |
= help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize` |
| 309 |
= note: for more information, visit <https://doc.rust-lang.org/reference/type-layout.html?highlight=repr#representations> |
| 310 |
|
| 311 |
error[E0566]: conflicting representation hints |
| 312 |
--> $DIR/enum.rs:46:8 |
| 313 |
| |
| 314 |
46 | #[repr(u8, u16)] |
| 315 |
| ^^ ^^^ |
| 316 |
| |
| 317 |
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! |
| 318 |
= note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585> |
| 319 |
= note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default |
| 320 |
|
| 321 |
error[E0277]: the trait bound `UnsafeCell<()>: Immutable` is not satisfied |
| 322 |
--> $DIR/enum.rs:64:10 |
| 323 |
| |
| 324 |
64 | #[derive(Immutable)] |
| 325 |
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<()>` |
| 326 |
| |
| 327 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<()>` |
| 328 |
= help: the following other types implement trait `Immutable`: |
| 329 |
&T |
| 330 |
&mut T |
| 331 |
() |
| 332 |
(A, B) |
| 333 |
(A, B, C) |
| 334 |
(A, B, C, D) |
| 335 |
(A, B, C, D, E) |
| 336 |
(A, B, C, D, E, F) |
| 337 |
and 137 others |
| 338 |
= help: see issue #48214 |
| 339 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 340 |
= note: consider using `--verbose` to print the full type name to the console |
| 341 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 342 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 343 |
| |
| 344 |
9 + #![feature(trivial_bounds)] |
| 345 |
| |
| 346 |
|
| 347 |
error[E0277]: the trait bound `UnsafeCell<u8>: Immutable` is not satisfied |
| 348 |
--> $DIR/enum.rs:75:10 |
| 349 |
| |
| 350 |
75 | #[derive(Immutable)] |
| 351 |
| ^^^^^^^^^ the trait `Immutable` is not implemented for `UnsafeCell<u8>` |
| 352 |
| |
| 353 |
= note: Consider adding `#[derive(Immutable)]` to `UnsafeCell<u8>` |
| 354 |
= help: the following other types implement trait `Immutable`: |
| 355 |
&T |
| 356 |
&mut T |
| 357 |
() |
| 358 |
(A, B) |
| 359 |
(A, B, C) |
| 360 |
(A, B, C, D) |
| 361 |
(A, B, C, D, E) |
| 362 |
(A, B, C, D, E, F) |
| 363 |
and 137 others |
| 364 |
= help: see issue #48214 |
| 365 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 366 |
= note: consider using `--verbose` to print the full type name to the console |
| 367 |
= note: this error originates in the derive macro `Immutable` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 368 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 369 |
| |
| 370 |
9 + #![feature(trivial_bounds)] |
| 371 |
| |
| 372 |
|
| 373 |
error[E0277]: the trait bound `NotTryFromBytes: TryFromBytes` is not satisfied |
| 374 |
--> $DIR/enum.rs:104:10 |
| 375 |
| |
| 376 |
104 | #[derive(TryFromBytes)] |
| 377 |
| ^^^^^^^^^^^^ unsatisfied trait bound |
| 378 |
| |
| 379 |
help: the trait `TryFromBytes` is not implemented for `NotTryFromBytes` |
| 380 |
--> $DIR/enum.rs:102:1 |
| 381 |
| |
| 382 |
102 | struct NotTryFromBytes; |
| 383 |
| ^^^^^^^^^^^^^^^^^^^^^^ |
| 384 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotTryFromBytes` |
| 385 |
= help: the following other types implement trait `TryFromBytes`: |
| 386 |
() |
| 387 |
(A, B) |
| 388 |
(A, B, C) |
| 389 |
(A, B, C, D) |
| 390 |
(A, B, C, D, E) |
| 391 |
(A, B, C, D, E, F) |
| 392 |
(A, B, C, D, E, F, G) |
| 393 |
(A, B, C, D, E, F, G, H) |
| 394 |
and 157 others |
| 395 |
= help: see issue #48214 |
| 396 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 397 |
= note: consider using `--verbose` to print the full type name to the console |
| 398 |
= note: this error originates in the derive macro `TryFromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 399 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 400 |
| |
| 401 |
9 + #![feature(trivial_bounds)] |
| 402 |
| |
| 403 |
|
| 404 |
error[E0277]: the trait bound `NotFromZeros: TryFromBytes` is not satisfied |
| 405 |
--> $DIR/enum.rs:161:10 |
| 406 |
| |
| 407 |
161 | #[derive(FromZeros)] |
| 408 |
| ^^^^^^^^^ unsatisfied trait bound |
| 409 |
| |
| 410 |
help: the trait `TryFromBytes` is not implemented for `NotFromZeros` |
| 411 |
--> $DIR/enum.rs:159:1 |
| 412 |
| |
| 413 |
159 | struct NotFromZeros; |
| 414 |
| ^^^^^^^^^^^^^^^^^^^ |
| 415 |
= note: Consider adding `#[derive(TryFromBytes)]` to `NotFromZeros` |
| 416 |
= help: the following other types implement trait `TryFromBytes`: |
| 417 |
() |
| 418 |
(A, B) |
| 419 |
(A, B, C) |
| 420 |
(A, B, C, D) |
| 421 |
(A, B, C, D, E) |
| 422 |
(A, B, C, D, E, F) |
| 423 |
(A, B, C, D, E, F, G) |
| 424 |
(A, B, C, D, E, F, G, H) |
| 425 |
and 157 others |
| 426 |
= help: see issue #48214 |
| 427 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 428 |
= note: consider using `--verbose` to print the full type name to the console |
| 429 |
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 430 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 431 |
| |
| 432 |
9 + #![feature(trivial_bounds)] |
| 433 |
| |
| 434 |
|
| 435 |
error[E0277]: the trait bound `NotFromZeros: FromZeros` is not satisfied |
| 436 |
--> $DIR/enum.rs:161:10 |
| 437 |
| |
| 438 |
161 | #[derive(FromZeros)] |
| 439 |
| ^^^^^^^^^ unsatisfied trait bound |
| 440 |
| |
| 441 |
help: the trait `FromZeros` is not implemented for `NotFromZeros` |
| 442 |
--> $DIR/enum.rs:159:1 |
| 443 |
| |
| 444 |
159 | struct NotFromZeros; |
| 445 |
| ^^^^^^^^^^^^^^^^^^^ |
| 446 |
= note: Consider adding `#[derive(FromZeros)]` to `NotFromZeros` |
| 447 |
= help: the following other types implement trait `FromZeros`: |
| 448 |
() |
| 449 |
(A, B) |
| 450 |
(A, B, C) |
| 451 |
(A, B, C, D) |
| 452 |
(A, B, C, D, E) |
| 453 |
(A, B, C, D, E, F) |
| 454 |
(A, B, C, D, E, F, G) |
| 455 |
(A, B, C, D, E, F, G, H) |
| 456 |
and 142 others |
| 457 |
= help: see issue #48214 |
| 458 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 459 |
= note: consider using `--verbose` to print the full type name to the console |
| 460 |
= note: this error originates in the derive macro `FromZeros` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 461 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 462 |
| |
| 463 |
9 + #![feature(trivial_bounds)] |
| 464 |
| |
| 465 |
|
| 466 |
error[E0277]: the trait bound `bool: FromBytes` is not satisfied |
| 467 |
--> $DIR/enum.rs:247:10 |
| 468 |
| |
| 469 |
247 | #[derive(FromBytes)] |
| 470 |
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool` |
| 471 |
| |
| 472 |
= note: Consider adding `#[derive(FromBytes)]` to `bool` |
| 473 |
= help: the following other types implement trait `FromBytes`: |
| 474 |
() |
| 475 |
(A, B) |
| 476 |
(A, B, C) |
| 477 |
(A, B, C, D) |
| 478 |
(A, B, C, D, E) |
| 479 |
(A, B, C, D, E, F) |
| 480 |
(A, B, C, D, E, F, G) |
| 481 |
(A, B, C, D, E, F, G, H) |
| 482 |
and 79 others |
| 483 |
= help: see issue #48214 |
| 484 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 485 |
= note: consider using `--verbose` to print the full type name to the console |
| 486 |
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 487 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 488 |
| |
| 489 |
9 + #![feature(trivial_bounds)] |
| 490 |
| |
| 491 |
|
| 492 |
error[E0277]: `IntoBytes1` has 1 total byte(s) of padding |
| 493 |
--> $DIR/enum.rs:623:10 |
| 494 |
| |
| 495 |
623 | #[derive(IntoBytes)] |
| 496 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 497 |
| |
| 498 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 499 |
= note: consider adding explicit fields where padding would be |
| 500 |
= note: consider using `#[repr(packed)]` to remove padding |
| 501 |
help: the trait `PaddingFree<IntoBytes1, 1>` is not implemented for `()` |
| 502 |
but trait `PaddingFree<IntoBytes1, 0>` is implemented for it |
| 503 |
--> src/util/macro_util.rs:64:0 |
| 504 |
= help: see issue #48214 |
| 505 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 506 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 507 |
| |
| 508 |
9 + #![feature(trivial_bounds)] |
| 509 |
| |
| 510 |
|
| 511 |
error[E0277]: `IntoBytes2` has 3 total byte(s) of padding |
| 512 |
--> $DIR/enum.rs:638:10 |
| 513 |
| |
| 514 |
638 | #[derive(IntoBytes)] |
| 515 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 516 |
| |
| 517 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 518 |
= note: consider adding explicit fields where padding would be |
| 519 |
= note: consider using `#[repr(packed)]` to remove padding |
| 520 |
help: the trait `PaddingFree<IntoBytes2, 3>` is not implemented for `()` |
| 521 |
but trait `PaddingFree<IntoBytes2, 0>` is implemented for it |
| 522 |
--> src/util/macro_util.rs:64:0 |
| 523 |
= help: see issue #48214 |
| 524 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 525 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 526 |
| |
| 527 |
9 + #![feature(trivial_bounds)] |
| 528 |
| |
| 529 |
|
| 530 |
error[E0277]: `IntoBytes3` has 2 total byte(s) of padding |
| 531 |
--> $DIR/enum.rs:647:10 |
| 532 |
| |
| 533 |
647 | #[derive(IntoBytes)] |
| 534 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 535 |
| |
| 536 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 537 |
= note: consider adding explicit fields where padding would be |
| 538 |
= note: consider using `#[repr(packed)]` to remove padding |
| 539 |
help: the trait `PaddingFree<IntoBytes3, 2>` is not implemented for `()` |
| 540 |
but trait `PaddingFree<IntoBytes3, 0>` is implemented for it |
| 541 |
--> src/util/macro_util.rs:64:0 |
| 542 |
= help: see issue #48214 |
| 543 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 544 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 545 |
| |
| 546 |
9 + #![feature(trivial_bounds)] |
| 547 |
| |
| 548 |
|
| 549 |
error: generic `Self` types are currently not permitted in anonymous constants |
| 550 |
--> $DIR/enum.rs:672:10 |
| 551 |
| |
| 552 |
672 | #[derive(IntoBytes)] |
| 553 |
| ^^^^^^^^^ |
| 554 |
| |
| 555 |
note: not a concrete type |
| 556 |
--> $DIR/enum.rs:672:10 |
| 557 |
| |
| 558 |
672 | #[derive(IntoBytes)] |
| 559 |
| ^^^^^^^^^ |
| 560 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 561 |
|
| 562 |
error[E0277]: `IntoBytes7` has 1 total byte(s) of padding |
| 563 |
--> $DIR/enum.rs:681:10 |
| 564 |
| |
| 565 |
681 | #[derive(IntoBytes)] |
| 566 |
| ^^^^^^^^^ types with padding cannot implement `IntoBytes` |
| 567 |
| |
| 568 |
= note: consider using `zerocopy::Unalign` to lower the alignment of individual fields |
| 569 |
= note: consider adding explicit fields where padding would be |
| 570 |
= note: consider using `#[repr(packed)]` to remove padding |
| 571 |
help: the trait `PaddingFree<IntoBytes7, 1>` is not implemented for `()` |
| 572 |
but trait `PaddingFree<IntoBytes7, 0>` is implemented for it |
| 573 |
--> src/util/macro_util.rs:64:0 |
| 574 |
= help: see issue #48214 |
| 575 |
= note: this error originates in the derive macro `IntoBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 576 |
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
| 577 |
| |
| 578 |
9 + #![feature(trivial_bounds)] |
| 579 |
| |
| 580 |
|
| 581 |
error[E0277]: the trait bound `bool: FromBytes` is not satisfied |
| 582 |
--> $DIR/enum.rs:247:10 |
| 583 |
| |
| 584 |
247 | #[derive(FromBytes)] |
| 585 |
| ^^^^^^^^^ the trait `FromBytes` is not implemented for `bool` |
| 586 |
| |
| 587 |
= note: Consider adding `#[derive(FromBytes)]` to `bool` |
| 588 |
= help: the following other types implement trait `FromBytes`: |
| 589 |
() |
| 590 |
(A, B) |
| 591 |
(A, B, C) |
| 592 |
(A, B, C, D) |
| 593 |
(A, B, C, D, E) |
| 594 |
(A, B, C, D, E, F) |
| 595 |
(A, B, C, D, E, F, G) |
| 596 |
(A, B, C, D, E, F, G, H) |
| 597 |
and 79 others |
| 598 |
note: required for `FooU8` to implement `FromBytes` |
| 599 |
--> $DIR/enum.rs:247:10 |
| 600 |
| |
| 601 |
247 | #[derive(FromBytes)] |
| 602 |
| ^^^^^^^^^ unsatisfied trait bound introduced in this `derive` macro |
| 603 |
note: required by a bound in `assert_is_from_bytes` |
| 604 |
--> $DIR/enum.rs:247:10 |
| 605 |
| |
| 606 |
247 | #[derive(FromBytes)] |
| 607 |
| ^^^^^^^^^ required by this bound in `assert_is_from_bytes` |
| 608 |
= note: the full name for the type has been written to '/long-type-HASH.txt' |
| 609 |
= note: consider using `--verbose` to print the full type name to the console |
| 610 |
= note: this error originates in the derive macro `FromBytes` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 611 |
|
| 612 |
error: aborting due to 52 previous errors |
| 613 |
|
| 614 |
Some errors have detailed explanations: E0277, E0552, E0565, E0566. |
| 615 |
For more information about an error, try `rustc --explain E0277`. |