Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
panic-handler
/
panic-handler-wrong-location.rs
blob: 8fff7067136e2f75ca0b839e82924407a9dfc0f2 [
file
] [
log
] [
blame
]
//@ 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