rust/tests/ui/panic-handler/panic-handler-std.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
260 B
Rust
Raw Normal View History

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