Content-Length: 24139 | pFad | https://doc.rust-lang.org/std/iter/../clone/../../../std/../error_codes/./E0264.html

E0264 - 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 E0264

An unknown external lang item was used.

Erroneous code example:

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

fn main() {
extern "C" {
    #[lang = "cake"] // error: unknown external lang item: `cake`
    fn cake();
}
}

A list of available external lang items is available in compiler/rustc_hir/src/weak_lang_items.rs. Example:

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

fn main() {
extern "C" {
    #[lang = "panic_impl"] // ok!
    fn cake();
}
}








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/iter/../clone/../../../std/../error_codes/./E0264.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy