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