2020-06-17 11:05:30 -07:00
|
|
|
// normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
2016-03-03 09:13:27 +01:00
|
|
|
// note-pattern: first defined in crate `std`.
|
|
|
|
|
2016-02-28 15:24:32 +01:00
|
|
|
// Test for issue #31788 and E0152
|
2016-02-20 22:53:29 +01:00
|
|
|
|
|
|
|
#![feature(lang_items)]
|
|
|
|
|
2018-04-30 10:55:24 +02: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 22:53:29 +01:00
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
2017-12-30 02:25:40 +08:00
|
|
|
fn main() {}
|