mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
15 lines
265 B
Rust
15 lines
265 B
Rust
#![feature(intrinsics)]
|
|
|
|
extern "C" {
|
|
|
|
#[rustc_intrinsic]
|
|
pub static atomic_singlethreadfence_seqcst: unsafe extern "C" fn();
|
|
//~^ ERROR intrinsic must be a function [E0622]
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
atomic_singlethreadfence_seqcst();
|
|
}
|
|
}
|