about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-03-03 09:13:27 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2016-03-03 12:47:27 +0100
commit7ab9345fe63f56091c11fc4eda4891d6771003ff (patch)
treedb5efd6c4df79c7765222e90b87bc84a5f210678 /src/test
parent6aa3d0f11a26ff69b4675f780f66010c46169e38 (diff)
downloadrust-7ab9345fe63f56091c11fc4eda4891d6771003ff.tar.gz
rust-7ab9345fe63f56091c11fc4eda4891d6771003ff.zip
Improve error messages
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/duplicate_entry_error.rs5
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 {}
 }