rust/tests/ui/error-codes/E0261.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
190 B
Rust
Raw Normal View History

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() {}