rust/src/test/ui/duplicate_entry_error.rs
2018-12-25 21:08:33 -07:00

16 lines
280 B
Rust

// note-pattern: first defined in crate `std`.
// Test for issue #31788 and E0152
#![feature(lang_items)]
use std::panic::PanicInfo;
#[lang = "panic_impl"]
fn panic_impl(info: &PanicInfo) -> ! {
//~^ ERROR: duplicate lang item found: `panic_impl`.
loop {}
}
fn main() {}