1 2 3 4 5 6 7 8 9
struct Test; enum Foo { #[repr(u8)] //~^ ERROR attribute should be applied to an enum Variant, } fn main() {}