diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/panic-handler/panic-handler-wrong-location.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/panic-handler/panic-handler-wrong-location.rs b/src/test/ui/panic-handler/panic-handler-wrong-location.rs new file mode 100644 index 000000000..dca591018 --- /dev/null +++ b/src/test/ui/panic-handler/panic-handler-wrong-location.rs @@ -0,0 +1,8 @@ +// compile-flags:-C panic=abort + +#![no_std] +#![no_main] + +#[panic_handler] //~ ERROR `panic_impl` language item must be applied to a function +#[no_mangle] +static X: u32 = 42; |