]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0094.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0094.md
1 An invalid number of generic parameters was passed to an intrinsic function.
2
3 Erroneous code example:
4
5 ```compile_fail,E0094
6 #![feature(intrinsics)]
7
8 extern "rust-intrinsic" {
9     fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
10                                  //        of type parameters
11 }
12 ```
13
14 Please check that you provided the right number of type parameters
15 and verify with the function declaration in the Rust source code.
16 Example:
17
18 ```
19 #![feature(intrinsics)]
20
21 extern "rust-intrinsic" {
22     fn size_of<T>() -> usize; // ok!
23 }
24 ```