summary refs log tree commit diff
path: root/src/test/ui/repr/repr-disallow-on-variant.rs
blob: 90cad7e647b057d54b75626a30847a66b5e37075 (plain)
1
2
3
4
5
6
7
8
9
struct Test;

enum Foo {
    #[repr(u8)]
    //~^ ERROR attribute should be applied to a struct, enum, or union
    Variant,
}

fn main() {}