]> git.lizzy.rs Git - rust.git/blob - src/test/ui/panic-handler/panic-handler-std.rs
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / 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() {}