Add panic handler

This commit is contained in:
Philipp Oppermann
2019-01-25 12:34:39 +01:00
parent 926940beb0
commit 3feee7761e

View File

@@ -1,4 +1,11 @@
#![no_std]
use core::panic::PanicInfo;
fn main() {}
/// This function is called on panic.
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
}