1 2 3 4 5 6 7 8 9 10
#![crate_type = "lib"] #![feature(panic_handler)] #![no_std] use core::panic::PanicInfo; #[panic_handler] fn panic(_: &PanicInfo) -> ! { loop {} }