2020-06-17 18:05:30 +00:00
|
|
|
//@ normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
2016-03-03 08:13:27 +00:00
|
|
|
// note-pattern: first defined in crate `std`.
|
|
|
|
|
2016-02-28 14:24:32 +00:00
|
|
|
// Test for issue #31788 and E0152
|
2016-02-20 21:53:29 +00:00
|
|
|
|
|
|
|
#![feature(lang_items)]
|
|
|
|
|
2018-04-30 08:55:24 +00:00
|
|
|
use std::panic::PanicInfo;
|
|
|
|
|
|
|
|
#[lang = "panic_impl"]
|
|
|
|
fn panic_impl(info: &PanicInfo) -> ! {
|
2020-01-10 14:36:22 +00:00
|
|
|
//~^ ERROR: found duplicate lang item `panic_impl`
|
2016-02-20 21:53:29 +00:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2017-12-29 18:25:40 +00:00
|
|
|
fn main() {}
|