about summary refs log tree commit diff
path: root/tests/ui/panic-handler
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-03-23 15:50:51 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2025-03-25 17:33:09 +0300
commit8d5109aa6ea1b54a560774eb95ba7c1b8d404faa (patch)
tree52b9dae4108c3d2bd7ddcb155416ae327a2443ab /tests/ui/panic-handler
parent7d49ae9731555937177d01e9fa39dbf22eb60399 (diff)
compiletest: Support matching on diagnostics without a span
Diffstat (limited to 'tests/ui/panic-handler')
-rw-r--r--tests/ui/panic-handler/panic-handler-wrong-location.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/panic-handler/panic-handler-wrong-location.rs b/tests/ui/panic-handler/panic-handler-wrong-location.rs
index 49685ee4592..c91580ae0c4 100644
--- a/tests/ui/panic-handler/panic-handler-wrong-location.rs
+++ b/tests/ui/panic-handler/panic-handler-wrong-location.rs
@@ -6,3 +6,5 @@
 #[panic_handler] //~ ERROR `panic_impl` lang item must be applied to a function
 #[no_mangle]
 static X: u32 = 42;
+
+//~? ERROR `#[panic_handler]` function required, but not found