summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unknown-language-item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unknown-language-item.rs')
-rw-r--r--src/test/ui/unknown-language-item.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/unknown-language-item.rs b/src/test/ui/unknown-language-item.rs
new file mode 100644
index 000000000..20ffef714
--- /dev/null
+++ b/src/test/ui/unknown-language-item.rs
@@ -0,0 +1,10 @@
+#![allow(unused)]
+#![feature(lang_items)]
+
+#[lang = "foo"]
+fn bar() -> ! {
+//~^^ ERROR definition of an unknown language item: `foo`
+ loop {}
+}
+
+fn main() {}