Auto merge of #35567 - creativcoder:e0261, r=jonathandturner

Update E0261 and E0262 to new error format

Fixes #35516 and  #35517 . Part of #35233
r? @jonathandturner
This commit is contained in:
bors 2016-08-15 05:12:35 -07:00 committed by GitHub
commit b72fa8ca95
3 changed files with 13 additions and 5 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() {}