compiler/rustc_error_codes/src/error_codes/E0622.md MARKDOWN 33 lines View on github.com → Search inside
1#### Note: this error code is no longer emitted by the compiler.23An intrinsic was declared without being a function.45Erroneous code example:67```ignore (no longer emitted)8#![feature(intrinsics)]9#![allow(internal_features)]1011extern "C" {12    #[rustc_intrinsic]13    pub static atomic_singlethreadfence_seqcst: unsafe fn();14    // error: intrinsic must be a function15}1617fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }18```1920An intrinsic is a function available for use in a given programming language21whose implementation is handled specially by the compiler. In order to fix this22error, just declare a function. Example:2324```ignore (no longer emitted)25#![feature(intrinsics)]26#![allow(internal_features)]2728#[rustc_intrinsic]29pub unsafe fn atomic_singlethreadfence_seqcst(); // ok!3031fn main() { unsafe { atomic_singlethreadfence_seqcst(); } }32```

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.