diff --git a/src/main.rs b/src/main.rs index e7a11a9..d774d11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,13 @@ -fn main() { - println!("Hello, world!"); +#![no_std] + +use core::panic::PanicInfo; + +fn main() {} +/// Function called on panic. It is a diverging function with a `never` return type. +/// +/// # Arguments +/// - `info`- contains the file and line where the panic happened and the optional panic message +#[panic_handler] +fn panic(_info: &PanicInfo) -> ! { + loop {} }