summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-repr_align_enum.rs
blob: 8b68caa6f5b0ed498a8904c435bf65b7b13e88ef (plain)
1
2
3
4
5
6
7
8
9
10
#[repr(align(16))]
struct Foo(u64);

#[repr(align(8))] //~ ERROR `#[repr(align(x))]` on enums is experimental
enum Bar {
    Foo { foo: Foo },
    Baz,
}

fn main() { }