2021-02-27 20:31:56 -06:00
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/regions-name-undeclared.rs:28:13
|
|
|
|
|
|
|
|
|
LL | enum E {
|
|
|
|
| - help: consider introducing lifetime `'a` here: `<'a>`
|
|
|
|
LL | E1(&'a isize)
|
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/regions-name-undeclared.rs:31:13
|
|
|
|
|
|
|
|
|
LL | struct S {
|
|
|
|
| - help: consider introducing lifetime `'a` here: `<'a>`
|
|
|
|
LL | f: &'a isize
|
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:16:24
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn m4(&self, arg: &'b isize) { }
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^ undeclared lifetime
|
2020-01-15 20:34:30 -06:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2020-01-15 20:34:30 -06:00
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | impl<'b, 'a> Foo<'a> {
|
|
|
|
| ^^^
|
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | fn m4<'b>(&self, arg: &'b isize) { }
|
|
|
|
| ^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:17:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn m5(&'b self) { }
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^ undeclared lifetime
|
2020-01-15 20:34:30 -06:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2020-01-15 20:34:30 -06:00
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | impl<'b, 'a> Foo<'a> {
|
|
|
|
| ^^^
|
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | fn m5<'b>(&'b self) { }
|
|
|
|
| ^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:18:27
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn m6(&self, arg: Foo<'b>) { }
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^ undeclared lifetime
|
2020-01-15 20:34:30 -06:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2020-01-15 20:34:30 -06:00
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | impl<'b, 'a> Foo<'a> {
|
|
|
|
| ^^^
|
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | fn m6<'b>(&self, arg: Foo<'b>) { }
|
|
|
|
| ^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:26:22
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | type X = Option<&'a isize>;
|
2020-01-15 20:34:30 -06:00
|
|
|
| - ^^ undeclared lifetime
|
|
|
|
| |
|
|
|
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
2020-07-08 18:12:59 -05:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:33:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn f(a: &'a isize) { }
|
2020-01-15 20:34:30 -06:00
|
|
|
| - ^^ undeclared lifetime
|
|
|
|
| |
|
|
|
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
2020-07-08 18:12:59 -05:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:41:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | fn fn_types(a: &'a isize,
|
2020-01-15 20:34:30 -06:00
|
|
|
| - ^^ undeclared lifetime
|
|
|
|
| |
|
|
|
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
2020-07-08 18:12:59 -05:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:43:36
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-14 11:34:09 -05:00
|
|
|
LL | ... &'b isize,
|
|
|
|
| ^^ undeclared lifetime
|
2020-01-27 13:26:06 -06:00
|
|
|
|
|
2020-01-27 18:25:43 -06:00
|
|
|
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2020-01-27 13:26:06 -06:00
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | fn fn_types<'b>(a: &'a isize,
|
|
|
|
| ^^^^
|
2020-01-27 18:13:45 -06:00
|
|
|
help: consider making the bound lifetime-generic with a new `'b` lifetime
|
2020-01-27 13:26:06 -06:00
|
|
|
|
|
|
|
|
LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
|
|
|
|
| ^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:46:36
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-08-14 11:34:09 -05:00
|
|
|
LL | ... &'b isize)>,
|
|
|
|
| ^^ undeclared lifetime
|
2020-01-27 13:26:06 -06:00
|
|
|
|
|
2020-01-27 18:25:43 -06:00
|
|
|
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2020-01-27 13:26:06 -06:00
|
|
|
help: consider introducing lifetime `'b` here
|
|
|
|
|
|
|
|
|
LL | fn fn_types<'b>(a: &'a isize,
|
|
|
|
| ^^^^
|
2020-01-27 18:13:45 -06:00
|
|
|
help: consider making the bound lifetime-generic with a new `'b` lifetime
|
2020-01-27 13:26:06 -06:00
|
|
|
|
|
|
|
|
LL | b: Box<dyn for<'a, 'b> FnOnce(&'a isize,
|
|
|
|
| ^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
2020-08-23 23:51:32 -05:00
|
|
|
--> $DIR/regions-name-undeclared.rs:47:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-15 20:34:30 -06:00
|
|
|
LL | fn fn_types(a: &'a isize,
|
|
|
|
| - help: consider introducing lifetime `'a` here: `<'a>`
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | c: &'a isize)
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^ undeclared lifetime
|
2020-07-08 18:12:59 -05:00
|
|
|
|
|
2020-07-09 17:24:18 -05:00
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2020-08-23 23:51:32 -05:00
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/regions-name-undeclared.rs:53:31
|
|
|
|
|
|
|
|
|
LL | async fn buggy(&self) -> &'a str {
|
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
|
|
|
help: consider introducing lifetime `'a` here
|
|
|
|
|
|
|
|
|
LL | impl<'a> Bug {
|
|
|
|
| ^^^^
|
|
|
|
help: consider introducing lifetime `'a` here
|
|
|
|
|
|
|
|
|
LL | async fn buggy<'a>(&self) -> &'a str {
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
error: aborting due to 12 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0261`.
|