]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_owned_box_lang_item.rs
Update code to account for extern ABI requirement
[rust.git] / src / test / ui / no_owned_box_lang_item.rs
1 // Test that we don't ICE when we are missing the owned_box lang item.
2
3 // error-pattern: requires `owned_box` lang_item
4
5 #![feature(lang_items, box_syntax)]
6 #![no_std]
7
8 use core::panic::PanicInfo;
9
10 fn main() {
11     let x = box 1i32;
12 }
13
14 #[lang = "eh_personality"] extern "C" fn eh_personality() {}
15 #[lang = "eh_catch_typeinfo"] static EH_CATCH_TYPEINFO: u8 = 0;
16 #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} }