]> git.lizzy.rs Git - rust.git/commitdiff
updated compile-fail tests
authorRahul Sharma <rsconceptx@gmail.com>
Sun, 14 Aug 2016 10:48:58 +0000 (16:18 +0530)
committerRahul Sharma <rsconceptx@gmail.com>
Sun, 14 Aug 2016 10:48:58 +0000 (16:18 +0530)
src/test/compile-fail/E0261.rs
src/test/compile-fail/E0262.rs

index 4196ad370b8871eec05832bba7b77d44bdd53801..558c1c381447e1199d96daa7b370134675ab8163 100644 (file)
@@ -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() {}
index e09e4766d51744ebf1f05e75d1f9646aa4b03e2a..41b6acaee4a1e09aba982c354e5b7b3c39e5f512 100644 (file)
@@ -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() {}