summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-undeclared.rs
blob: 1edd998aa0e24b10b06959f1046b906a6fbe5973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {
}