mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
19 lines
395 B
Rust
19 lines
395 B
Rust
//@ normalize-stderr-test "loaded from .*libstd-.*.rlib" -> "loaded from SYSROOT/libstd-*.rlib"
|
|
// note-pattern: first defined in crate `std`.
|
|
|
|
// Test for issue #31788 and E0152
|
|
|
|
#![feature(lang_items)]
|
|
|
|
extern crate core;
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
#[lang = "panic_impl"]
|
|
fn panic_impl(info: &PanicInfo) -> ! {
|
|
//~^ ERROR: found duplicate lang item `panic_impl`
|
|
loop {}
|
|
}
|
|
|
|
fn main() {}
|