summaryrefslogtreecommitdiffstats
path: root/src/test/ui/repr/repr-disallow-on-variant.rs
blob: d9bd0b0e38a692bbe527612187c8a53c8cf7b311 (plain)
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() {}