]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0094.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0094.md
1 An invalid number of type parameters was given 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 ```