Aaron Kutch 1d9d761e9f Fix panic-handler documentation
rust-lang/rust#51647 is fixed but panic-handler is still needed
2021-04-02 08:58:50 -05:00

12 lines
213 B
Rust

//! This is needed for tests on targets that require a `#[panic_handler]` function
#![feature(no_core)]
#![no_core]
extern crate core;
#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
loop {}
}