summaryrefslogtreecommitdiffstats
path: root/src/test/ui/intrinsics/issue-28575.rs
blob: 410f664f89d44e97dd1927c4011948eed391d7b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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
}