3 The tracking issue for this feature is: [#57996]
5 [#57996]: https://github.com/rust-lang/rust/issues/57996
7 ------------------------
9 The `repr_align_enum` feature allows using the `#[repr(align(x))]` attribute
10 on enums, similarly to structs.
15 #![feature(repr_align_enum)]
24 assert_eq!(std::mem::align_of::<Aligned>(), 8);
28 This is equivalent to using an aligned wrapper struct everywhere:
32 struct Aligned(Unaligned);
40 assert_eq!(std::mem::align_of::<Aligned>(), 8);