mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 05:51:58 +00:00
982b49494e
This is to make the diff when stabilizing it easier to review.
10 lines
157 B
Rust
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
|
|
}
|