]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0718.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0718.md
1 A `#[lang = ".."]` attribute was placed on the wrong item type.
2
3 Erroneous code example:
4
5 ```compile_fail,E0718
6 #![feature(lang_items)]
7
8 #[lang = "owned_box"]
9 static X: u32 = 42;
10 ```