summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0718.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/error-codes/E0718.rs')
-rw-r--r--src/test/ui/error-codes/E0718.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/error-codes/E0718.rs b/src/test/ui/error-codes/E0718.rs
new file mode 100644
index 000000000..909cae0ba
--- /dev/null
+++ b/src/test/ui/error-codes/E0718.rs
@@ -0,0 +1,7 @@
+#![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() {}