fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
739 B21 linesraw
1error[E0261]: use of undeclared lifetime name `'a`
2  --> $DIR/generic-extern-lifetime.rs:6:24
3   |
4LL |    pub fn life2<'b>(x:&'a i32, y:&'b i32);
5   |                        ^^ undeclared lifetime
6
7error[E0261]: use of undeclared lifetime name `'a`
8  --> $DIR/generic-extern-lifetime.rs:8:36
9   |
10LL |    pub fn life4<'b>(x: for<'c> fn(&'a i32));
11   |                                    ^^ undeclared lifetime
12
13error[E0261]: use of undeclared lifetime name `'a`
14  --> $DIR/generic-extern-lifetime.rs:11:38
15   |
16LL |    pub fn life7<'b>() -> for<'c> fn(&'a i32);
17   |                                      ^^ undeclared lifetime
18
19error: aborting due to 3 previous errors
20
21For more information about this error, try `rustc --explain E0261`.