1 2 3 4 5 6 7 8 9 10 11
//! An enum without #[repr(u8)] must not compile. use nearest::Flat; #[derive(Flat)] enum Bad { A, B, } fn main() {}