Error code E0092

An undefined atomic operation function was declared.

Erroneous code example:

#![feature(intrinsics)]

extern "rust-intrinsic" {
    fn atomic_foo(); // error: unrecognized atomic operation
                     //        function
}
Run

Please check you didn’t make a mistake in the function’s name. All intrinsic functions are defined in compiler/rustc_codegen_llvm/src/intrinsic.rs and in library/core/src/intrinsics.rs in the Rust source code. Example:

#![feature(intrinsics)]

extern "rust-intrinsic" {
    fn atomic_fence(); // ok!
}
Run

Back to list of error codes