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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
157 B
Rust
Raw Normal View History

2020-04-15 20:09:34 -05:00
#![feature(intrinsics)]
extern "C" {
pub static FOO: extern "rust-intrinsic" fn();
}
fn main() {
FOO() //~ ERROR: use of extern static is unsafe
}