2016-08-05 11:17:39 +00:00
|
|
|
fn foo(x: &'a str) { } //~ ERROR E0261
|
2016-08-14 10:48:58 +00:00
|
|
|
//~| undeclared lifetime
|
2016-08-05 11:17:39 +00:00
|
|
|
|
|
|
|
struct Foo {
|
|
|
|
x: &'a str, //~ ERROR E0261
|
2016-08-14 10:48:58 +00:00
|
|
|
//~| undeclared lifetime
|
2016-08-05 11:17:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|