1 2 3 4 5 6 7 8 9
//! Test that #[inline] attribute cannot be applied to enum variants enum Foo { #[inline] //~^ ERROR attribute should be applied Variant, } fn main() {}