about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/error_codes/E0093.md
blob: 3552c2db4ccc1c69c04c550097493698396ee144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
An unknown intrinsic function was declared.

Erroneous code example:

```compile_fail,E0093
#![feature(intrinsics)]
#![allow(internal_features)]

#[rustc_intrinsic]
unsafe fn foo(); // error: unrecognized intrinsic function: `foo`

fn main() {
    unsafe {
        foo();
    }
}
```

Please check you didn't make a mistake in the function's name. All intrinsic
functions are defined in `library/core/src/intrinsics` in the Rust source code.