mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 14:52:56 +03:00
updated compile-fail tests
This commit is contained in:
@@ -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() {}
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user