blob: c7076d9162ea1d031e31954bf13c443e5e7912b2 [file]
error: `#[repr(packed)]` attribute cannot be used on enums
--> $DIR/thaw-validate-invalid-enum.rs:3:1
|
LL | #[repr(packed)]
| ^^^^^^^^^^^^^^^
|
= help: `#[repr(packed)]` can be applied to structs and unions
error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union
--> $DIR/thaw-validate-invalid-enum.rs:14:9
|
LL | e: E,
| ^^^^
|
= note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>`
help: wrap the field type in `ManuallyDrop<...>`
|
LL | e: std::mem::ManuallyDrop<E>,
| +++++++++++++++++++++++ +
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0740`.