about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRahul Sharma <rsconceptx@gmail.com>2016-08-14 16:18:58 +0530
committerRahul Sharma <rsconceptx@gmail.com>2016-08-14 16:18:58 +0530
commit02fa14fc8ef3020b2ca52cc7d7f69db38520569f (patch)
treef7df6b1d978e5723d83c7968c6c0e3edae1d130e /src
parentf581d525e7e0c5576421c7846c0af400392b91df (diff)
downloadrust-02fa14fc8ef3020b2ca52cc7d7f69db38520569f.tar.gz
rust-02fa14fc8ef3020b2ca52cc7d7f69db38520569f.zip
updated compile-fail tests
Diffstat (limited to 'src')
-rw-r--r--src/test/compile-fail/E0261.rs2
-rw-r--r--src/test/compile-fail/E0262.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/test/compile-fail/E0261.rs b/src/test/compile-fail/E0261.rs
index 4196ad370b8..558c1c38144 100644
--- a/src/test/compile-fail/E0261.rs
+++ b/src/test/compile-fail/E0261.rs
@@ -9,9 +9,11 @@
 // except according to those terms.
 
 fn foo(x: &'a str) { } //~ ERROR E0261
+                       //~| undeclared lifetime
 
 struct Foo {
     x: &'a str, //~ ERROR E0261
+                //~| undeclared lifetime
 }
 
 fn main() {}
diff --git a/src/test/compile-fail/E0262.rs b/src/test/compile-fail/E0262.rs
index e09e4766d51..41b6acaee4a 100644
--- a/src/test/compile-fail/E0262.rs
+++ b/src/test/compile-fail/E0262.rs
@@ -9,5 +9,6 @@
 // except according to those terms.
 
 fn foo<'static>(x: &'static str) { } //~ ERROR E0262
+                                     //~| 'static is a reserved lifetime name
 
 fn main() {}