1 use bitflags::bitflags; 2 3 struct MyInt(u8); 4 5 bitflags! { 6 struct Flags128: MyInt { 7 const A = MyInt(0b0000_0001); 8 const B = MyInt(0b0000_0010); 9 const C = MyInt(0b0000_0100); 10 } 11 } 12 main()13 fn main() {} 14