diff --git a/src/test/compile-fail/E0261.rs b/src/test/compile-fail/E0261.rs index 4196ad370b88..558c1c381447 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 e09e4766d517..41b6acaee4a1 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() {}