rust/tests/ui/panic-handler/panic-handler-wrong-location.rs
Alexandru RADOVICI 07c7e5ffb3 error when using no_mangle on language items
add suggestion on how to add a panic breakpoint

Co-authored-by: Pat Pannuto <pat.pannuto@gmail.com>
delete no_mangle from ui/panic-handler/panic-handler-wrong-location test

issue an error for the usage of #[no_mangle] on internal language items

delete the comments

add newline

rephrase note

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
update error not to leak implementation details

delete no_mangle_span

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
delete commented code
2025-04-30 14:54:10 +03:00

10 lines
222 B
Rust

//@ compile-flags:-C panic=abort
#![no_std]
#![no_main]
#[panic_handler] //~ ERROR `panic_impl` lang item must be applied to a function
static X: u32 = 42;
//~? ERROR `#[panic_handler]` function required, but not found