rust/tests/ui/error-codes/E0261.rs
2023-01-11 09:32:08 +00:00

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