mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
222 B
Rust
13 lines
222 B
Rust
// revisions: mir thir
|
|
// [thir]compile-flags: -Z thir-unsafeck
|
|
|
|
#![feature(intrinsics)]
|
|
|
|
extern "C" {
|
|
pub static FOO: extern "rust-intrinsic" fn();
|
|
}
|
|
|
|
fn main() {
|
|
FOO() //~ ERROR: use of extern static is unsafe
|
|
}
|