about summary refs log tree commit diff
path: root/tests/ui/attributes/inline-attribute-enum-variant-error.rs
blob: 305b285d2a4f6a37949d2f6ef17d709a39fb3765 (plain)
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() {}