blob: 33ec6289b870fded5a6b18b8523fb00f2e7a3023 [file]
// Issue an error when the user uses #[no_mangle] on the panic handler
//@ edition:2024
#![crate_type = "lib"]
#![no_std]
#![no_main]
use core::panic::PanicInfo;
#[unsafe(no_mangle)] //~ ERROR `#[no_mangle]` and `#[export_name]` cannot be used on internal language items
#[panic_handler]
pub fn panic_fmt(pi: &PanicInfo) -> ! {
loop {}
}