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

10 lines
190 B
Rust

fn foo(x: &'a str) { } //~ ERROR E0261
//~| undeclared lifetime
struct Foo {
x: &'a str, //~ ERROR E0261
//~| undeclared lifetime
}
fn main() {}