1 error[E0261]: use of undeclared lifetime name `'a`
2 --> $DIR/regions-name-undeclared.rs:28:13
5 | - help: consider introducing lifetime `'a` here: `<'a>`
7 | ^^ undeclared lifetime
9 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
11 error[E0261]: use of undeclared lifetime name `'a`
12 --> $DIR/regions-name-undeclared.rs:31:13
15 | - help: consider introducing lifetime `'a` here: `<'a>`
17 | ^^ undeclared lifetime
19 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
21 error[E0261]: use of undeclared lifetime name `'b`
22 --> $DIR/regions-name-undeclared.rs:16:24
24 LL | fn m4(&self, arg: &'b isize) { }
25 | ^^ undeclared lifetime
27 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
28 help: consider introducing lifetime `'b` here
30 LL | impl<'b, 'a> Foo<'a> {
32 help: consider introducing lifetime `'b` here
34 LL | fn m4<'b>(&self, arg: &'b isize) { }
37 error[E0261]: use of undeclared lifetime name `'b`
38 --> $DIR/regions-name-undeclared.rs:17:12
40 LL | fn m5(&'b self) { }
41 | ^^ undeclared lifetime
43 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
44 help: consider introducing lifetime `'b` here
46 LL | impl<'b, 'a> Foo<'a> {
48 help: consider introducing lifetime `'b` here
50 LL | fn m5<'b>(&'b self) { }
53 error[E0261]: use of undeclared lifetime name `'b`
54 --> $DIR/regions-name-undeclared.rs:18:27
56 LL | fn m6(&self, arg: Foo<'b>) { }
57 | ^^ undeclared lifetime
59 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
60 help: consider introducing lifetime `'b` here
62 LL | impl<'b, 'a> Foo<'a> {
64 help: consider introducing lifetime `'b` here
66 LL | fn m6<'b>(&self, arg: Foo<'b>) { }
69 error[E0261]: use of undeclared lifetime name `'a`
70 --> $DIR/regions-name-undeclared.rs:26:22
72 LL | type X = Option<&'a isize>;
73 | - ^^ undeclared lifetime
75 | help: consider introducing lifetime `'a` here: `<'a>`
77 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
79 error[E0261]: use of undeclared lifetime name `'a`
80 --> $DIR/regions-name-undeclared.rs:33:14
82 LL | fn f(a: &'a isize) { }
83 | - ^^ undeclared lifetime
85 | help: consider introducing lifetime `'a` here: `<'a>`
87 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
89 error[E0261]: use of undeclared lifetime name `'a`
90 --> $DIR/regions-name-undeclared.rs:41:17
92 LL | fn fn_types(a: &'a isize,
93 | - ^^ undeclared lifetime
95 | help: consider introducing lifetime `'a` here: `<'a>`
97 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
99 error[E0261]: use of undeclared lifetime name `'b`
100 --> $DIR/regions-name-undeclared.rs:43:36
103 | ^^ undeclared lifetime
105 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
106 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
107 help: consider introducing lifetime `'b` here
109 LL | fn fn_types<'b>(a: &'a isize,
111 help: consider making the bound lifetime-generic with a new `'b` lifetime
113 LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
116 error[E0261]: use of undeclared lifetime name `'b`
117 --> $DIR/regions-name-undeclared.rs:46:36
119 LL | ... &'b isize)>,
120 | ^^ undeclared lifetime
122 = note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
123 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
124 help: consider introducing lifetime `'b` here
126 LL | fn fn_types<'b>(a: &'a isize,
128 help: consider making the bound lifetime-generic with a new `'b` lifetime
130 LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
133 error[E0261]: use of undeclared lifetime name `'a`
134 --> $DIR/regions-name-undeclared.rs:47:17
136 LL | fn fn_types(a: &'a isize,
137 | - help: consider introducing lifetime `'a` here: `<'a>`
140 | ^^ undeclared lifetime
142 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
144 error[E0261]: use of undeclared lifetime name `'a`
145 --> $DIR/regions-name-undeclared.rs:53:31
147 LL | async fn buggy(&self) -> &'a str {
148 | ^^ undeclared lifetime
150 = help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
151 help: consider introducing lifetime `'a` here
155 help: consider introducing lifetime `'a` here
157 LL | async fn buggy<'a>(&self) -> &'a str {
160 error: aborting due to 12 previous errors
162 For more information about this error, try `rustc --explain E0261`.