]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no_owned_box_lang_item.rs
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / no_owned_box_lang_item.rs
index 1c2bf1573dcc1900e2f2becbc6396ccc58a016f0..34d1075f9b71dbd1d1bd766d2422bb3e1a606832 100644 (file)
 #![feature(lang_items, box_syntax)]
 #![no_std]
 
+use core::panic::PanicInfo;
+
 fn main() {
     let x = box 1i32;
 }
 
 #[lang = "eh_personality"] extern fn eh_personality() {}
 #[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {}
-#[lang = "panic_impl"] fn panic_impl() -> ! { loop {} }
+#[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} }