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