rust/tests/ui/intrinsics/issue-28575.rs
Matthew Jasper 982b49494e Remove revisions for THIR unsafeck
This is to make the diff when stabilizing it easier to review.
2024-01-05 09:30:27 +00:00

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
}