2020-06-18 02:05:30 +08:00
|
|
|
//@ normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
2020-01-10 22:36:22 +08:00
|
|
|
//@ error-pattern: found duplicate lang item `panic_impl`
|
2018-05-29 18:33:11 +08:00
|
|
|
|
2024-01-31 17:27:29 +08:00
|
|
|
extern crate core;
|
2018-05-29 18:33:11 +08:00
|
|
|
|
2024-01-31 17:27:29 +08:00
|
|
|
use core::panic::PanicInfo;
|
2018-05-29 18:33:11 +08:00
|
|
|
|
2018-08-23 06:40:32 +08:00
|
|
|
#[panic_handler]
|
2018-05-29 18:33:11 +08:00
|
|
|
fn panic(info: PanicInfo) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|