fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
4.0 KiB129 linesraw
1error[E0261]: use of undeclared lifetime name `'b`
2  --> $DIR/regions-name-undeclared.rs:15:24
3   |
4LL |     fn m4(&self, arg: &'b isize) { }
5   |                        ^^ undeclared lifetime
6   |
7help: consider introducing lifetime `'b` here
8   |
9LL | impl<'b, 'a> Foo<'a> {
10   |      ^^^
11help: consider introducing lifetime `'b` here
12   |
13LL |     fn m4<'b>(&self, arg: &'b isize) { }
14   |          ^^^^
15
16error[E0261]: use of undeclared lifetime name `'b`
17  --> $DIR/regions-name-undeclared.rs:16:12
18   |
19LL |     fn m5(&'b self) { }
20   |            ^^ undeclared lifetime
21   |
22help: consider introducing lifetime `'b` here
23   |
24LL | impl<'b, 'a> Foo<'a> {
25   |      ^^^
26help: consider introducing lifetime `'b` here
27   |
28LL |     fn m5<'b>(&'b self) { }
29   |          ^^^^
30
31error[E0261]: use of undeclared lifetime name `'b`
32  --> $DIR/regions-name-undeclared.rs:17:27
33   |
34LL |     fn m6(&self, arg: Foo<'b>) { }
35   |                           ^^ undeclared lifetime
36   |
37help: consider introducing lifetime `'b` here
38   |
39LL | impl<'b, 'a> Foo<'a> {
40   |      ^^^
41help: consider introducing lifetime `'b` here
42   |
43LL |     fn m6<'b>(&self, arg: Foo<'b>) { }
44   |          ^^^^
45
46error[E0261]: use of undeclared lifetime name `'a`
47  --> $DIR/regions-name-undeclared.rs:25:22
48   |
49LL |     type X = Option<&'a isize>;
50   |           -          ^^ undeclared lifetime
51   |           |
52   |           help: consider introducing lifetime `'a` here: `<'a>`
53
54error[E0261]: use of undeclared lifetime name `'a`
55  --> $DIR/regions-name-undeclared.rs:27:13
56   |
57LL |     enum E {
58   |           - help: consider introducing lifetime `'a` here: `<'a>`
59LL |         E1(&'a isize)
60   |             ^^ undeclared lifetime
61
62error[E0261]: use of undeclared lifetime name `'a`
63  --> $DIR/regions-name-undeclared.rs:30:13
64   |
65LL |     struct S {
66   |             - help: consider introducing lifetime `'a` here: `<'a>`
67LL |         f: &'a isize
68   |             ^^ undeclared lifetime
69
70error[E0261]: use of undeclared lifetime name `'a`
71  --> $DIR/regions-name-undeclared.rs:32:14
72   |
73LL |     fn f(a: &'a isize) { }
74   |         -    ^^ undeclared lifetime
75   |         |
76   |         help: consider introducing lifetime `'a` here: `<'a>`
77
78error[E0261]: use of undeclared lifetime name `'a`
79  --> $DIR/regions-name-undeclared.rs:40:17
80   |
81LL | fn fn_types(a: &'a isize,
82   |            -    ^^ undeclared lifetime
83   |            |
84   |            help: consider introducing lifetime `'a` here: `<'a>`
85
86error[E0261]: use of undeclared lifetime name `'b`
87  --> $DIR/regions-name-undeclared.rs:42:36
88   |
89LL | ...                   &'b isize,
90   |                        ^^ undeclared lifetime
91   |
92   = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
93help: consider introducing lifetime `'b` here
94   |
95LL | fn fn_types<'b>(a: &'a isize,
96   |            ^^^^
97help: consider making the bound lifetime-generic with a new `'b` lifetime
98   |
99LL |             b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
100   |                              ^^^^
101
102error[E0261]: use of undeclared lifetime name `'b`
103  --> $DIR/regions-name-undeclared.rs:45:36
104   |
105LL | ...                   &'b isize)>,
106   |                        ^^ undeclared lifetime
107   |
108   = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
109help: consider introducing lifetime `'b` here
110   |
111LL | fn fn_types<'b>(a: &'a isize,
112   |            ^^^^
113help: consider making the bound lifetime-generic with a new `'b` lifetime
114   |
115LL |             b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
116   |                              ^^^^
117
118error[E0261]: use of undeclared lifetime name `'a`
119  --> $DIR/regions-name-undeclared.rs:46:17
120   |
121LL | fn fn_types(a: &'a isize,
122   |            - help: consider introducing lifetime `'a` here: `<'a>`
123...
124LL |             c: &'a isize)
125   |                 ^^ undeclared lifetime
126
127error: aborting due to 11 previous errors
128
129For more information about this error, try `rustc --explain E0261`.