mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
16 lines
298 B
Rust
16 lines
298 B
Rust
// no-prefer-dynamic
|
|
|
|
#![crate_type = "rlib"]
|
|
|
|
#![no_std]
|
|
#![feature(lang_items)]
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
#[lang = "panic_impl"]
|
|
fn panic_impl(info: &PanicInfo) -> ! { loop {} }
|
|
#[lang = "eh_personality"]
|
|
fn eh_personality() {}
|
|
#[lang = "eh_catch_typeinfo"]
|
|
static EH_CATCH_TYPEINFO: u8 = 0;
|