summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unknown-language-item.rs
blob: 20ffef71497c02db63932119c8f0c58c966aad75 (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(unused)]
#![feature(lang_items)]

#[lang = "foo"]
fn bar() -> ! {
//~^^ ERROR definition of an unknown language item: `foo`
    loop {}
}

fn main() {}