]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generics/generic-extern-lifetime.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / generics / generic-extern-lifetime.stderr
CommitLineData
b7449926 1error[E0261]: use of undeclared lifetime name `'a`
5869c6ff 2 --> $DIR/generic-extern-lifetime.rs:6:26
b7449926 3 |
5869c6ff
XL
4LL | pub fn life2<'b>(x: &'a i32, y: &'b i32);
5 | ^^ undeclared lifetime
b7449926
XL
6
7error[E0261]: use of undeclared lifetime name `'a`
5869c6ff 8 --> $DIR/generic-extern-lifetime.rs:8:37
b7449926 9 |
5869c6ff
XL
10LL | pub fn life4<'b>(x: for<'c> fn(&'a i32));
11 | ^^ undeclared lifetime
74b04a01
XL
12 |
13 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
14help: consider making the type lifetime-generic with a new `'a` lifetime
15 |
5869c6ff 16LL | pub fn life4<'b>(x: for<'c, 'a> fn(&'a i32));
94222f64 17 | ++++
b7449926
XL
18
19error[E0261]: use of undeclared lifetime name `'a`
5869c6ff 20 --> $DIR/generic-extern-lifetime.rs:11:39
b7449926 21 |
5869c6ff
XL
22LL | pub fn life7<'b>() -> for<'c> fn(&'a i32);
23 | ^^ undeclared lifetime
74b04a01
XL
24 |
25 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
26help: consider making the type lifetime-generic with a new `'a` lifetime
27 |
5869c6ff 28LL | pub fn life7<'b>() -> for<'c, 'a> fn(&'a i32);
94222f64 29 | ++++
b7449926
XL
30
31error: aborting due to 3 previous errors
32
33For more information about this error, try `rustc --explain E0261`.