about summary refs log tree commit diff
path: root/src/test/ui/panic-handler/panic-handler-wrong-location.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/panic-handler/panic-handler-wrong-location.rs')
-rw-r--r--src/test/ui/panic-handler/panic-handler-wrong-location.rs2
1 files changed, 1 insertions, 1 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
index 04e02682bc1..441a0d82364 100644
--- a/src/test/ui/panic-handler/panic-handler-wrong-location.rs
+++ b/src/test/ui/panic-handler/panic-handler-wrong-location.rs
@@ -13,6 +13,6 @@
 #![no_std]
 #![no_main]
 
-#[panic_handler]
+#[panic_handler] //~ ERROR `panic_impl` language item must be applied to a function
 #[no_mangle]
 static X: u32 = 42;