1 error[E0261]: use of undeclared lifetime name `'a`
2 --> $DIR/generic-extern-lifetime.rs:6:26
4 LL | pub fn life2<'b>(x: &'a i32, y: &'b i32);
5 | - ^^ undeclared lifetime
7 | help: consider introducing lifetime `'a` here: `'a,`
9 error[E0261]: use of undeclared lifetime name `'a`
10 --> $DIR/generic-extern-lifetime.rs:8:37
12 LL | pub fn life4<'b>(x: for<'c> fn(&'a i32));
13 | ^^ undeclared lifetime
15 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
16 help: consider making the type lifetime-generic with a new `'a` lifetime
18 LL | pub fn life4<'b>(x: for<'a, 'c> fn(&'a i32));
20 help: consider introducing lifetime `'a` here
22 LL | pub fn life4<'a, 'b>(x: for<'c> fn(&'a i32));
25 error[E0261]: use of undeclared lifetime name `'a`
26 --> $DIR/generic-extern-lifetime.rs:11:39
28 LL | pub fn life7<'b>() -> for<'c> fn(&'a i32);
29 | ^^ undeclared lifetime
31 help: consider making the type lifetime-generic with a new `'a` lifetime
33 LL | pub fn life7<'b>() -> for<'a, 'c> fn(&'a i32);
35 help: consider introducing lifetime `'a` here
37 LL | pub fn life7<'a, 'b>() -> for<'c> fn(&'a i32);
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0261`.