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.

14 lines
282 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 18:33:11 +08:00
extern crate core;
2018-05-29 18:33:11 +08:00
use core::panic::PanicInfo;
2018-05-29 18:33:11 +08:00
#[panic_handler]
2018-05-29 18:33:11 +08:00
fn panic(info: PanicInfo) -> ! {
loop {}
}
fn main() {}