about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authortrixnz <mtatrix@gmail.com>2016-08-04 22:52:16 +0200
committertrixnz <mtatrix@gmail.com>2016-08-04 22:52:16 +0200
commit0214ec248b2835a17c845c742d0e7697262ca72e (patch)
tree7de3911957cfd076aae098d7347c72a37be191e2 /src/test
parente804a3cf256106c097d44f6e0212cd183122da07 (diff)
downloadrust-0214ec248b2835a17c845c742d0e7697262ca72e.tar.gz
rust-0214ec248b2835a17c845c742d0e7697262ca72e.zip
Update error format for E0062
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/E0062.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0062.rs b/src/test/compile-fail/E0062.rs
index 86ec7db14b5..822d93e52d5 100644
--- a/src/test/compile-fail/E0062.rs
+++ b/src/test/compile-fail/E0062.rs
@@ -14,7 +14,9 @@ struct Foo {
 
 fn main() {
     let x = Foo {
+        x: 0, //~ NOTE first use of `x`
         x: 0,
-        x: 0, //~ ERROR E0062
+        //~^ ERROR E0062
+        //~| NOTE used more than once
     };
 }