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 Permalink 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 lang item: `foo`
2018-01-23 17:34:16 -06:00
loop {}
}
fn main() {}