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

11 lines
161 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 language item: `foo`
loop {}
}
fn main() {}