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