]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-handler/panic-handler-wrong-location.rs
Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup
[rust.git] / src / test / 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;