# Error code E0264

An unknown external lang item was used.

Erroneous code example:

ⓘ

    #![feature(lang_items)]

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

Run

A list of available external lang items is available in `src/librustc_middle/middle/weak_lang_items.rs`. Example:

    #![feature(lang_items)]

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

Run

Back to list of error codes