Content-Length: 24257 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../../std/../../error_codes/./E0094.html

E0094 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0094

An invalid number of generic parameters was passed to an intrinsic function.

Erroneous code example:

#![allow(unused)]
#![feature(intrinsics)]
#![allow(internal_features)]

fn main() {
#[rustc_intrinsic]
fn size_of<T, U>() -> usize; // error: intrinsic has wrong number
                             //        of type parameters
}

Please check that you provided the right number of type parameters and verify with the function declaration in the Rust source code. Example:

#![allow(unused)]
#![feature(intrinsics)]
#![allow(internal_features)]

fn main() {
#[rustc_intrinsic]
fn size_of<T>() -> usize; // ok!
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../../std/../../error_codes/./E0094.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy