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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}