summaryrefslogtreecommitdiffstats
path: root/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/panic-handler/panic-handler-bad-signature-2.stderr')
-rw-r--r--tests/ui/panic-handler/panic-handler-bad-signature-2.stderr12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr b/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr
index 5ab693420..84eba2a5a 100644
--- a/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr
+++ b/tests/ui/panic-handler/panic-handler-bad-signature-2.stderr
@@ -1,8 +1,12 @@
-error: argument should be `&PanicInfo`
- --> $DIR/panic-handler-bad-signature-2.rs:10:11
+error[E0308]: `#[panic_handler]` function has wrong type
+ --> $DIR/panic-handler-bad-signature-2.rs:9:1
|
-LL | info: &'static PanicInfo,
- | ^^^^^^^^^^^^^^^^^^
+LL | fn panic(info: &'static PanicInfo) -> !
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
+ |
+ = note: expected signature `for<'a, 'b> fn(&'a PanicInfo<'b>) -> _`
+ found signature `for<'a> fn(&'static PanicInfo<'a>) -> _`
error: aborting due to previous error
+For more information about this error, try `rustc --explain E0308`.