E0264 - Error codes index
Description: Book listing all Rust error codes

## 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 = "copy"] // error: unknown external lang item: `copy`
        fn copy();
    }
    }

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();
    }
    }