Skip to content

Commit 02fa14f

Browse files
committed
updated compile-fail tests
1 parent f581d52 commit 02fa14f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/test/compile-fail/E0261.rs

+2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
// except according to those terms.
1010

1111
fn foo(x: &'a str) { } //~ ERROR E0261
12+
//~| undeclared lifetime
1213

1314
struct Foo {
1415
x: &'a str, //~ ERROR E0261
16+
//~| undeclared lifetime
1517
}
1618

1719
fn main() {}

src/test/compile-fail/E0262.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
// except according to those terms.
1010

1111
fn foo<'static>(x: &'static str) { } //~ ERROR E0262
12+
//~| 'static is a reserved lifetime name
1213

1314
fn main() {}

0 commit comments

Comments
 (0)