updated compile-fail tests

This commit is contained in:
Rahul Sharma 2016-08-14 16:18:58 +05:30
parent f581d525e7
commit 02fa14fc8e
2 changed files with 3 additions and 0 deletions

View 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() {}

View 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() {}