blob: 3f7bab065869a26f5900d80bd9c8dafbeab35eab [file] [log] [blame]
#![feature(const_fn)]
fn main() {}
#[repr(C)]
union Foo {
u: u32,
i: i32,
}
const unsafe fn foo(u: u32) -> i32 {
Foo { u }.i //~ ERROR unions in const fn are unstable
}