2023-09-17 13:13:05 -05:00
|
|
|
error[E0308]: `#[panic_handler]` function has wrong type
|
|
|
|
--> $DIR/panic-handler-bad-signature-5.rs:9:1
|
|
|
|
|
|
|
|
|
LL | fn panic(info: &PanicInfo<'static>) -> !
|
2023-09-19 14:15:58 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2023-09-17 13:13:05 -05:00
|
|
|
|
|
2023-09-22 14:47:34 -05:00
|
|
|
= note: expected signature `for<'a, 'b> fn(&'a PanicInfo<'b>) -> _`
|
|
|
|
found signature `for<'a> fn(&'a PanicInfo<'static>) -> _`
|
2023-09-17 13:13:05 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-09-17 13:13:05 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|