about summary refs log tree commit diff
path: root/src/test/compile-fail/impl-wrong-item-for-trait.rs
diff options
context:
space:
mode:
authorVincent Prouillet <vincent@wearewizards.io>2016-08-05 16:27:40 +0100
committerVincent Prouillet <vincent@wearewizards.io>2016-08-05 20:10:27 +0100
commite0035c9797bf1fa5c2f87935e4ba7d362888d299 (patch)
treeec3450b749fd5dc5c9deae5aa94b1d433751cb5a /src/test/compile-fail/impl-wrong-item-for-trait.rs
parent271d048523b6c1b0e773d9e5cc76bbb997cc180c (diff)
downloadrust-e0035c9797bf1fa5c2f87935e4ba7d362888d299.tar.gz
rust-e0035c9797bf1fa5c2f87935e4ba7d362888d299.zip
Update error message for E0323, E0324 and E0325
Diffstat (limited to 'src/test/compile-fail/impl-wrong-item-for-trait.rs')
-rw-r--r--src/test/compile-fail/impl-wrong-item-for-trait.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/compile-fail/impl-wrong-item-for-trait.rs b/src/test/compile-fail/impl-wrong-item-for-trait.rs
index 9b3e28cbc01..6452e50d089 100644
--- a/src/test/compile-fail/impl-wrong-item-for-trait.rs
+++ b/src/test/compile-fail/impl-wrong-item-for-trait.rs
@@ -12,7 +12,9 @@
 
 trait Foo {
     fn bar(&self);
-    const MY_CONST: u32;
+    //~^ NOTE original trait requirement
+    //~| NOTE original trait requirement
+    const MY_CONST: u32; //~ NOTE original trait requirement
 }
 
 pub struct FooConstForMethod;
@@ -21,6 +23,7 @@ impl Foo for FooConstForMethod {
     //~^ ERROR E0046
     const bar: u64 = 1;
     //~^ ERROR E0323
+    //~| NOTE does not match trait
     const MY_CONST: u32 = 1;
 }
 
@@ -31,6 +34,7 @@ impl Foo for FooMethodForConst {
     fn bar(&self) {}
     fn MY_CONST() {}
     //~^ ERROR E0324
+    //~| NOTE does not match trait
 }
 
 pub struct FooTypeForMethod;
@@ -39,6 +43,7 @@ impl Foo for FooTypeForMethod {
     //~^ ERROR E0046
     type bar = u64;
     //~^ ERROR E0325
+    //~| NOTE does not match trait
     const MY_CONST: u32 = 1;
 }