Sign in
fuchsia
/
third_party
/
rust
/
aeb32f01b674e383d240b3a173d6d9bc29c7a6ad
/
.
/
src
/
test
/
ui
/
union
/
union-repr-c.rs
blob: 1367835e6778122fc41e1b7697fc94a9151cac8b [
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 `extern` block uses type `W`
}
fn
main
()
{}