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