rust/tests/ui/panic-handler/panic-handler-std.rs
2023-01-11 09:32:08 +00:00

13 lines
260 B
Rust

// normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
// error-pattern: found duplicate lang item `panic_impl`
use std::panic::PanicInfo;
#[panic_handler]
fn panic(info: PanicInfo) -> ! {
loop {}
}
fn main() {}