Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
feature-gate-const_fn_union.rs
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
}