1 An invalid number of generic parameters was passed to an intrinsic function.
3 Erroneous code example:
6 #![feature(intrinsics)]
8 extern "rust-intrinsic" {
9 #[rustc_safe_intrinsic]
10 fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
15 Please check that you provided the right number of type parameters
16 and verify with the function declaration in the Rust source code.
20 #![feature(intrinsics)]
22 extern "rust-intrinsic" {
23 #[rustc_safe_intrinsic]
24 fn size_of<T>() -> usize; // ok!