]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/generic-extern-lifetime.stderr
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / generics / generic-extern-lifetime.stderr
1 error[E0261]: use of undeclared lifetime name `'a`
2   --> $DIR/generic-extern-lifetime.rs:6:26
3    |
4 LL |     pub fn life2<'b>(x: &'a i32, y: &'b i32);
5    |                          ^^ undeclared lifetime
6
7 error[E0261]: use of undeclared lifetime name `'a`
8   --> $DIR/generic-extern-lifetime.rs:8:37
9    |
10 LL |     pub fn life4<'b>(x: for<'c> fn(&'a i32));
11    |                                     ^^ undeclared lifetime
12    |
13    = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
14 help: consider making the type lifetime-generic with a new `'a` lifetime
15    |
16 LL |     pub fn life4<'b>(x: for<'c, 'a> fn(&'a i32));
17    |                               ^^^^
18
19 error[E0261]: use of undeclared lifetime name `'a`
20   --> $DIR/generic-extern-lifetime.rs:11:39
21    |
22 LL |     pub fn life7<'b>() -> for<'c> fn(&'a i32);
23    |                                       ^^ undeclared lifetime
24    |
25    = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
26 help: consider making the type lifetime-generic with a new `'a` lifetime
27    |
28 LL |     pub fn life7<'b>() -> for<'c, 'a> fn(&'a i32);
29    |                                 ^^^^
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0261`.