about summary refs log tree commit diff
path: root/tests/ui/panic-runtime/want-abort-got-unwind2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panic-runtime/want-abort-got-unwind2.rs')
-rw-r--r--tests/ui/panic-runtime/want-abort-got-unwind2.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ui/panic-runtime/want-abort-got-unwind2.rs b/tests/ui/panic-runtime/want-abort-got-unwind2.rs
index d63161db55c..53cba457424 100644
--- a/tests/ui/panic-runtime/want-abort-got-unwind2.rs
+++ b/tests/ui/panic-runtime/want-abort-got-unwind2.rs
@@ -1,6 +1,5 @@
 //@ build-fail
 //@ dont-check-compiler-stderr
-//@ error-pattern:is not compiled with this crate's panic strategy `abort`
 //@ aux-build:panic-runtime-unwind.rs
 //@ aux-build:wants-panic-runtime-unwind.rs
 //@ compile-flags:-C panic=abort
@@ -8,3 +7,7 @@
 extern crate wants_panic_runtime_unwind;
 
 fn main() {}
+
+//~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
+//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
+//~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`