Sign in
fuchsia
/
third_party
/
rust
/
867ce769b6a27c8f359eb6573f5da8b34677d055
/
.
/
src
/
test
/
ui
/
union
/
union-repr-c.rs
blob: 658452d57f748b394fe6771885bbdde6dde47fba [
file
] [
log
] [
blame
]
#![
allow
(
unused
)]
#![
deny
(
improper_ctypes
)]
#[
repr
(
C
)]
union U
{
a
:
u8
,
}
union W
{
a
:
u8
,
}
extern
"C"
{
static
FOREIGN1
:
U
;
// OK
static
FOREIGN2
:
W
;
//~ ERROR union has unspecified layout
}
fn
main
()
{}