1 An intrinsic was declared without being a function.
3 Erroneous code example:
6 #![feature(intrinsics)]
7 extern "rust-intrinsic" {
8 pub static breakpoint : fn(); // error: intrinsic must be a function
11 fn main() { unsafe { breakpoint(); } }
14 An intrinsic is a function available for use in a given programming language
15 whose implementation is handled specially by the compiler. In order to fix this
16 error, just declare a function. Example:
19 #![feature(intrinsics)]
20 extern "rust-intrinsic" {
21 pub fn breakpoint(); // ok!
24 fn main() { unsafe { breakpoint(); } }