]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0622.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0622.md
1 An intrinsic was declared without being a function.
2
3 Erroneous code example:
4
5 ```compile_fail,E0622
6 #![feature(intrinsics)]
7 extern "rust-intrinsic" {
8     pub static breakpoint : unsafe extern "rust-intrinsic" fn();
9     // error: intrinsic must be a function
10 }
11
12 fn main() { unsafe { breakpoint(); } }
13 ```
14
15 An intrinsic is a function available for use in a given programming language
16 whose implementation is handled specially by the compiler. In order to fix this
17 error, just declare a function.