]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0092.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0092.md
1 An undefined atomic operation function was declared.
2
3 Erroneous code example:
4
5 ```compile_fail,E0092
6 #![feature(intrinsics)]
7
8 extern "rust-intrinsic" {
9     fn atomic_foo(); // error: unrecognized atomic operation
10                      //        function
11 }
12 ```
13
14 Please check you didn't make a mistake in the function's name. All intrinsic
15 functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
16 `library/core/src/intrinsics.rs` in the Rust source code. Example:
17
18 ```
19 #![feature(intrinsics)]
20
21 extern "rust-intrinsic" {
22     fn atomic_fence(); // ok!
23 }
24 ```