mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-21 07:58:17 +00:00
19 lines
226 B
Rust
19 lines
226 B
Rust
#![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() {}
|