]>
Commit | Line | Data |
---|---|---|
c1a9b12d | 1 | // Test that we don't ICE when we are missing the owned_box lang item. |
85aaf69f | 2 | |
c1a9b12d | 3 | // error-pattern: requires `owned_box` lang_item |
223e47cc | 4 | |
92a42be0 | 5 | #![feature(lang_items, box_syntax)] |
c1a9b12d | 6 | #![no_std] |
c1a9b12d | 7 | |
0bf4aa26 XL |
8 | use core::panic::PanicInfo; |
9 | ||
c1a9b12d SL |
10 | fn main() { |
11 | let x = box 1i32; | |
12 | } | |
13 | ||
c1a9b12d | 14 | #[lang = "eh_personality"] extern fn eh_personality() {} |
0bf4aa26 | 15 | #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} } |