rust/tests/ui/unknown-language-item.rs

11 lines
157 B
Rust
Raw Normal View History

2018-01-23 23:34:16 +00:00
#![allow(unused)]
#![feature(lang_items)]
#[lang = "foo"]
fn bar() -> ! {
//~^^ ERROR definition of an unknown lang item: `foo`
2018-01-23 23:34:16 +00:00
loop {}
}
fn main() {}