rust/tests/ui/error-codes/E0718.rs
2023-01-11 09:32:08 +00:00

8 lines
188 B
Rust

#![feature(lang_items)]
// Box is expected to be a struct, so this will error.
#[lang = "owned_box"] //~ ERROR language item must be applied to a struct
static X: u32 = 42;
fn main() {}