diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-03-03 09:13:27 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-03-03 12:47:27 +0100 |
| commit | 7ab9345fe63f56091c11fc4eda4891d6771003ff (patch) | |
| tree | db5efd6c4df79c7765222e90b87bc84a5f210678 /src/test | |
| parent | 6aa3d0f11a26ff69b4675f780f66010c46169e38 (diff) | |
| download | rust-7ab9345fe63f56091c11fc4eda4891d6771003ff.tar.gz rust-7ab9345fe63f56091c11fc4eda4891d6771003ff.zip | |
Improve error messages
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/duplicate_entry_error.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/compile-fail/duplicate_entry_error.rs b/src/test/compile-fail/duplicate_entry_error.rs index 0c649b1b412..ad5ea291599 100644 --- a/src/test/compile-fail/duplicate_entry_error.rs +++ b/src/test/compile-fail/duplicate_entry_error.rs @@ -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 {} } |
