]> git.lizzy.rs Git - rust.git/commitdiff
Add test for no_core statics
authorOliver Scherer <github35764891676564198441@oli-obk.de>
Mon, 15 Oct 2018 18:48:25 +0000 (20:48 +0200)
committerOliver Scherer <github35764891676564198441@oli-obk.de>
Tue, 16 Oct 2018 15:01:24 +0000 (17:01 +0200)
src/test/ui/static_sized_requirement.rs [new file with mode: 0644]

diff --git a/src/test/ui/static_sized_requirement.rs b/src/test/ui/static_sized_requirement.rs
new file mode 100644 (file)
index 0000000..0ee0637
--- /dev/null
@@ -0,0 +1,12 @@
+// compile-pass
+
+#![feature(no_core, lang_items)]
+#![no_core]
+#![crate_type = "lib"]
+
+#[lang = "sized"]
+trait Sized {}
+
+extern {
+    pub static A: u32;
+}