]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-wrong-location.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / panic-handler / panic-handler-wrong-location.rs
1 // compile-flags:-C panic=abort
2
3 #![no_std]
4 #![no_main]
5
6 #[panic_handler] //~ ERROR `panic_impl` language item must be applied to a function
7 #[no_mangle]
8 static X: u32 = 42;