mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
f54dbe6e31
This reverts commit abc0660118
.
19 lines
301 B
Rust
19 lines
301 B
Rust
// compile-flags: -C panic=abort
|
|
// no-prefer-dynamic
|
|
|
|
#![no_std]
|
|
#![crate_type = "staticlib"]
|
|
#![feature(alloc_error_handler)]
|
|
|
|
#[panic_handler]
|
|
fn panic(_: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
#[alloc_error_handler]
|
|
fn oom(_: core::alloc::Layout) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
extern crate alloc;
|