]> git.lizzy.rs Git - rust.git/blobdiff - 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
index bef630d826c0f8aff05af84b0ecb2dd5caeaf3c1..c22b44ffca2a4e354fab2cd7ecfaedda8791510d 100644 (file)
@@ -11,6 +11,6 @@ fn main() {
     let x = box 1i32;
 }
 
-#[lang = "eh_personality"] extern fn eh_personality() {}
+#[lang = "eh_personality"] extern "C" fn eh_personality() {}
 #[lang = "eh_catch_typeinfo"] static EH_CATCH_TYPEINFO: u8 = 0;
 #[lang = "panic_impl"] fn panic_impl(panic: &PanicInfo) -> ! { loop {} }