summary refs log tree commit diff
path: root/src/test/ui/feature-gates/feature-gate-repr_align_enum.rs
blob: f8e68a9de015be5604a7e1055870bb036ea20d78 (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 (see issue #57996)
enum Bar {
    Foo { foo: Foo },
    Baz,
}

fn main() { }