Improve error messages
This commit is contained in:
parent
6aa3d0f11a
commit
7ab9345fe6
2 changed files with 18 additions and 17 deletions
|
|
@ -8,14 +8,15 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// note-pattern: first defined in crate `std`.
|
||||
|
||||
// Test for issue #31788 and E0152
|
||||
|
||||
#![feature(lang_items)]
|
||||
|
||||
#[lang = "panic_fmt"]
|
||||
fn panic_fmt() -> ! {
|
||||
//~^ ERROR: Duplicate lang item found: `panic_fmt`.
|
||||
//~| NOTE First defined in crate `std`.
|
||||
//~^ ERROR: duplicate lang item found: `panic_fmt`.
|
||||
loop {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue