]> git.lizzy.rs Git - rust.git/blob - tests/ui/panic-handler/panic-handler-std.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / panic-handler / panic-handler-std.rs
1 // normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
2 // error-pattern: found duplicate lang item `panic_impl`
3
4
5 use std::panic::PanicInfo;
6
7 #[panic_handler]
8 fn panic(info: PanicInfo) -> ! {
9     loop {}
10 }
11
12 fn main() {}