use bitflags::bitflags; bitflags! { #[repr(transparent)] struct Flags: u32 { const A = 0b00000001; } } fn main() {}