This error indicates that a #[lang = ".."] attribute was placed on the wrong type of item.
#[lang = ".."]
Examples of erroneous code:
#![feature(lang_items)] #[lang = "arc"] static X: u32 = 42;