-// error-pattern: `#[panic_handler]` function required, but not found
-
// Regression test for #54505 - range borrowing suggestion had
// incorrect syntax (missing parentheses).
#[lang = "eh_catch_typeinfo"]
static EH_CATCH_TYPEINFO: u8 = 0;
+#[panic_handler]
+fn panic_handler() {}
+//~^ ERROR return type should be `!`
+//~| ERROR function should have one argument
// take a reference to any built-in range
fn take_range(_r: &impl RangeBounds<i8>) {}