Error code E0718

A #[lang = ".."] attribute was placed on the wrong item type.

Erroneous code example:

#![allow(unused)] #![feature(lang_items)] fn main() { #[lang = "owned_box"] static X: u32 = 42; }