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