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

11 lines
161 B
Rust
Raw Normal View History

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