mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
Tweak wording
This commit is contained in:
parent
6864546049
commit
a9b64766a4
@ -1091,7 +1091,7 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
|
|||||||
&& suggests_in_band
|
&& suggests_in_band
|
||||||
{
|
{
|
||||||
err.help(
|
err.help(
|
||||||
"if you want to use in-band lifetime bindings, \
|
"if you want to experiment with in-band lifetime bindings, \
|
||||||
add `#![feature(in_band_lifetimes)]` to the crate attributes",
|
add `#![feature(in_band_lifetimes)]` to the crate attributes",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ LL | fn foo(x: &'a str) { }
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/E0261.rs:5:9
|
--> $DIR/E0261.rs:5:9
|
||||||
@ -16,7 +16,7 @@ LL | struct Foo {
|
|||||||
LL | x: &'a str,
|
LL | x: &'a str,
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'x` here: `<'x>`
|
| help: consider introducing lifetime `'x` here: `<'x>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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 `'x`
|
error[E0261]: use of undeclared lifetime name `'x`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:3:23
|
--> $DIR/feature-gate-in_band_lifetimes.rs:3:23
|
||||||
@ -16,7 +16,7 @@ LL | fn foo(x: &'x u8) -> &'x u8 { x }
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'x` here: `<'x>`
|
| help: consider introducing lifetime `'x` here: `<'x>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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 `'b`
|
error[E0261]: use of undeclared lifetime name `'b`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:15:12
|
--> $DIR/feature-gate-in_band_lifetimes.rs:15:12
|
||||||
@ -32,7 +32,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn inner_2(&self) -> &'b u8 {
|
LL | fn inner_2(&self) -> &'b u8 {
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b, 'a> X<'b> {
|
LL | impl<'b, 'a> X<'b> {
|
||||||
@ -50,7 +50,7 @@ LL | impl X<'b> {
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'b` here: `<'b>`
|
| help: consider introducing lifetime `'b` here: `<'b>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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 `'b`
|
error[E0261]: use of undeclared lifetime name `'b`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:25:27
|
--> $DIR/feature-gate-in_band_lifetimes.rs:25:27
|
||||||
@ -58,7 +58,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn inner_3(&self) -> &'b u8 {
|
LL | fn inner_3(&self) -> &'b u8 {
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b> X<'b> {
|
LL | impl<'b> X<'b> {
|
||||||
@ -76,7 +76,7 @@ LL | impl Y<&'a u8> {
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:35:25
|
--> $DIR/feature-gate-in_band_lifetimes.rs:35:25
|
||||||
@ -84,7 +84,7 @@ error[E0261]: use of undeclared lifetime name `'a`
|
|||||||
LL | fn inner(&self) -> &'a u8 {
|
LL | fn inner(&self) -> &'a u8 {
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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
|
help: consider introducing lifetime `'a` here
|
||||||
|
|
|
|
||||||
LL | impl<'a> Y<&'a u8> {
|
LL | impl<'a> Y<&'a u8> {
|
||||||
@ -100,7 +100,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn any_lifetime() -> &'b u8;
|
LL | fn any_lifetime() -> &'b u8;
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | trait MyTrait<'b, 'a> {
|
LL | trait MyTrait<'b, 'a> {
|
||||||
@ -116,7 +116,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | trait MyTrait<'b, 'a> {
|
LL | trait MyTrait<'b, 'a> {
|
||||||
@ -132,7 +132,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | trait MyTrait<'b, 'a> {
|
LL | trait MyTrait<'b, 'a> {
|
||||||
@ -150,7 +150,7 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:50:25
|
--> $DIR/feature-gate-in_band_lifetimes.rs:50:25
|
||||||
@ -160,7 +160,7 @@ LL | impl MyTrait<'a> for Y<&'a u8> {
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/feature-gate-in_band_lifetimes.rs:53:31
|
--> $DIR/feature-gate-in_band_lifetimes.rs:53:31
|
||||||
@ -168,7 +168,7 @@ error[E0261]: use of undeclared lifetime name `'a`
|
|||||||
LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
|
LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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
|
help: consider introducing lifetime `'a` here
|
||||||
|
|
|
|
||||||
LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
|
LL | impl<'a> MyTrait<'a> for Y<&'a u8> {
|
||||||
@ -184,7 +184,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn any_lifetime() -> &'b u8 { &0 }
|
LL | fn any_lifetime() -> &'b u8 { &0 }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
||||||
@ -200,7 +200,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
||||||
@ -216,7 +216,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
LL | impl<'b> MyTrait<'a> for Y<&'a u8> {
|
||||||
|
@ -4,7 +4,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | + Deref<Target = Self::Item<'b>>;
|
LL | + Deref<Target = Self::Item<'b>>;
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | trait Iterable<'b> {
|
LL | trait Iterable<'b> {
|
||||||
@ -20,7 +20,7 @@ error[E0261]: use of undeclared lifetime name `'undeclared`
|
|||||||
LL | fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
|
LL | fn iter<'a>(&'a self) -> Self::Iter<'undeclared>;
|
||||||
| ^^^^^^^^^^^ undeclared lifetime
|
| ^^^^^^^^^^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'undeclared` here
|
help: consider introducing lifetime `'undeclared` here
|
||||||
|
|
|
|
||||||
LL | trait Iterable<'undeclared> {
|
LL | trait Iterable<'undeclared> {
|
||||||
|
@ -6,7 +6,7 @@ LL | fn main() {
|
|||||||
LL | 0.clone::<'a>();
|
LL | 0.clone::<'a>();
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ LL | enum No0 {
|
|||||||
LL | X5(&'foo usize)
|
LL | X5(&'foo usize)
|
||||||
| ^^^^ undeclared lifetime
|
| ^^^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-in-enums.rs:17:9
|
--> $DIR/regions-in-enums.rs:17:9
|
||||||
@ -16,7 +16,7 @@ LL | enum No1 {
|
|||||||
LL | X6(&'a usize)
|
LL | X6(&'a usize)
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ LL | struct StructDecl {
|
|||||||
LL | a: &'a isize,
|
LL | a: &'a isize,
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-in-structs.rs:11:9
|
--> $DIR/regions-in-structs.rs:11:9
|
||||||
@ -17,7 +17,7 @@ LL | a: &'a isize,
|
|||||||
LL | b: &'a isize,
|
LL | b: &'a isize,
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn m4(&self, arg: &'b isize) { }
|
LL | fn m4(&self, arg: &'b isize) { }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b, 'a> Foo<'a> {
|
LL | impl<'b, 'a> Foo<'a> {
|
||||||
@ -20,7 +20,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn m5(&'b self) { }
|
LL | fn m5(&'b self) { }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b, 'a> Foo<'a> {
|
LL | impl<'b, 'a> Foo<'a> {
|
||||||
@ -36,7 +36,7 @@ error[E0261]: use of undeclared lifetime name `'b`
|
|||||||
LL | fn m6(&self, arg: Foo<'b>) { }
|
LL | fn m6(&self, arg: Foo<'b>) { }
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | impl<'b, 'a> Foo<'a> {
|
LL | impl<'b, 'a> Foo<'a> {
|
||||||
@ -54,7 +54,7 @@ LL | type X = Option<&'a isize>;
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-name-undeclared.rs:27:13
|
--> $DIR/regions-name-undeclared.rs:27:13
|
||||||
@ -64,7 +64,7 @@ LL | enum E {
|
|||||||
LL | E1(&'a isize)
|
LL | E1(&'a isize)
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-name-undeclared.rs:30:13
|
--> $DIR/regions-name-undeclared.rs:30:13
|
||||||
@ -74,7 +74,7 @@ LL | struct S {
|
|||||||
LL | f: &'a isize
|
LL | f: &'a isize
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-name-undeclared.rs:32:14
|
--> $DIR/regions-name-undeclared.rs:32:14
|
||||||
@ -84,7 +84,7 @@ LL | fn f(a: &'a isize) { }
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-name-undeclared.rs:40:17
|
--> $DIR/regions-name-undeclared.rs:40:17
|
||||||
@ -94,7 +94,7 @@ LL | fn fn_types(a: &'a isize,
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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 `'b`
|
error[E0261]: use of undeclared lifetime name `'b`
|
||||||
--> $DIR/regions-name-undeclared.rs:42:36
|
--> $DIR/regions-name-undeclared.rs:42:36
|
||||||
@ -103,7 +103,7 @@ LL | ... &'b isize,
|
|||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | fn fn_types<'b>(a: &'a isize,
|
LL | fn fn_types<'b>(a: &'a isize,
|
||||||
@ -120,7 +120,7 @@ LL | ... &'b isize)>,
|
|||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
help: consider introducing lifetime `'b` here
|
help: consider introducing lifetime `'b` here
|
||||||
|
|
|
|
||||||
LL | fn fn_types<'b>(a: &'a isize,
|
LL | fn fn_types<'b>(a: &'a isize,
|
||||||
@ -139,7 +139,7 @@ LL | fn fn_types(a: &'a isize,
|
|||||||
LL | c: &'a isize)
|
LL | c: &'a isize)
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 11 previous errors
|
error: aborting due to 11 previous errors
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ LL | enum EnumDecl {
|
|||||||
LL | Foo(&'a isize),
|
LL | Foo(&'a isize),
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-undeclared.rs:5:10
|
--> $DIR/regions-undeclared.rs:5:10
|
||||||
@ -23,7 +23,7 @@ LL | Foo(&'a isize),
|
|||||||
LL | Bar(&'a isize),
|
LL | Bar(&'a isize),
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-undeclared.rs:8:15
|
--> $DIR/regions-undeclared.rs:8:15
|
||||||
@ -33,7 +33,7 @@ LL | fn fnDecl(x: &'a isize,
|
|||||||
| |
|
| |
|
||||||
| help: consider introducing lifetime `'a` here: `<'a>`
|
| help: consider introducing lifetime `'a` here: `<'a>`
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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`
|
error[E0261]: use of undeclared lifetime name `'a`
|
||||||
--> $DIR/regions-undeclared.rs:9:15
|
--> $DIR/regions-undeclared.rs:9:15
|
||||||
@ -43,7 +43,7 @@ LL | fn fnDecl(x: &'a isize,
|
|||||||
LL | y: &'a isize)
|
LL | y: &'a isize)
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 5 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ LL | for<'a> dyn Trait1<'a>: Trait1<'a>, // OK
|
|||||||
LL | (dyn for<'a> Trait1<'a>): Trait1<'a>,
|
LL | (dyn for<'a> Trait1<'a>): Trait1<'a>,
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= 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 `'b`
|
error[E0261]: use of undeclared lifetime name `'b`
|
||||||
--> $DIR/where-lifetime-resolution.rs:8:52
|
--> $DIR/where-lifetime-resolution.rs:8:52
|
||||||
@ -18,7 +18,7 @@ LL | fn f() where
|
|||||||
LL | for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
|
LL | for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
|
||||||
| ^^ undeclared lifetime
|
| ^^ undeclared lifetime
|
||||||
|
|
|
|
||||||
= help: if you want to use in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
= help: if you want to experiment with in-band lifetime bindings, add `#![feature(in_band_lifetimes)]` to the crate attributes
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user