mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
16 lines
239 B
Rust
16 lines
239 B
Rust
//@ known-bug: #104685
|
|
//@ compile-flags: -Zextra-const-ub-checks
|
|
#![feature(extern_types)]
|
|
|
|
extern {
|
|
pub type ExternType;
|
|
}
|
|
|
|
extern "C" {
|
|
pub static EXTERN: ExternType;
|
|
}
|
|
|
|
pub static EMPTY: () = unsafe { &EXTERN; };
|
|
|
|
fn main() {}
|