mirror of
https://github.com/rjNemo/rouille_os
synced 2026-06-06 02:26:46 +00:00
panic
This commit is contained in:
parent
d987c8bc4e
commit
9a90151756
1 changed files with 12 additions and 2 deletions
14
src/main.rs
14
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 {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue