]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-undeclared.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / regions / regions-undeclared.rs
1 static c_x: &'blk isize = &22; //~ ERROR use of undeclared lifetime name `'blk`
2
3 enum EnumDecl {
4     Foo(&'a isize), //~ ERROR use of undeclared lifetime name `'a`
5     Bar(&'a isize), //~ ERROR use of undeclared lifetime name `'a`
6 }
7
8 fn fnDecl(x: &'a isize, //~ ERROR use of undeclared lifetime name `'a`
9           y: &'a isize) //~ ERROR use of undeclared lifetime name `'a`
10 {}
11
12 fn main() {
13 }