Skip to content

Commit

Permalink
updated compile-fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
creativcoder committed Aug 14, 2016
1 parent f581d52 commit 02fa14f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/compile-fail/E0261.rs
Expand Up @@ -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() {}
1 change: 1 addition & 0 deletions src/test/compile-fail/E0262.rs
Expand Up @@ -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() {}

0 comments on commit 02fa14f

Please sign in to comment.