rust/tests/ui/regions/regions-undeclared.rs
2023-01-11 09:32:08 +00:00

13 lines
394 B
Rust

static c_x: &'blk isize = &22; //~ ERROR use of undeclared lifetime name `'blk`
enum EnumDecl {
Foo(&'a isize), //~ ERROR use of undeclared lifetime name `'a`
Bar(&'a isize), //~ ERROR use of undeclared lifetime name `'a`
}
fn fnDecl(x: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
y: &'a isize) //~ ERROR use of undeclared lifetime name `'a`
{}
fn main() {
}