This commit is contained in:
Ruidy 2021-04-24 17:03:58 +02:00
parent d987c8bc4e
commit 9a90151756

View file

@ -1,3 +1,13 @@
fn main() { #![no_std]
println!("Hello, world!");
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 {}
} }