summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panic-handler/panic-handler-std.rs
blob: 6183c886cfac7194272c611349d46e9a15242061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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() {}