rust/tests/run-make-fulldeps/issue-51671/app.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
310 B
Rust
Raw Normal View History

#![crate_type = "bin"]
#![feature(lang_items, alloc_error_handler)]
#![no_main]
#![no_std]
use core::alloc::Layout;
use core::panic::PanicInfo;
#[panic_handler]
fn panic(_: &PanicInfo) -> ! {
loop {}
}
#[lang = "eh_personality"]
fn eh() {}
#[alloc_error_handler]
fn oom(_: Layout) -> ! {
loop {}
}