rust/tests/ui/intrinsics/issue-28575.rs

10 lines
157 B
Rust

#![feature(intrinsics)]
extern "C" {
pub static FOO: extern "rust-intrinsic" fn();
}
fn main() {
FOO() //~ ERROR: use of extern static is unsafe
}