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;
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0718.html