]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-51671/app.rs
Merge commit '1480cea393d0cee195e59949eabdfbcf1230f7f9' into clippyup
[rust.git] / tests / run-make-fulldeps / issue-51671 / app.rs
1 #![crate_type = "bin"]
2 #![feature(lang_items, alloc_error_handler)]
3 #![no_main]
4 #![no_std]
5
6 use core::alloc::Layout;
7 use core::panic::PanicInfo;
8
9 #[panic_handler]
10 fn panic(_: &PanicInfo) -> ! {
11     loop {}
12 }
13
14 #[lang = "eh_personality"]
15 fn eh() {}
16
17 #[alloc_error_handler]
18 fn oom(_: Layout) -> ! {
19     loop {}
20 }