2017-12-06 09:27:47 +01:00
|
|
|
error[E0261]: use of undeclared lifetime name `'x`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:13:12
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn foo(x: &'x u8) -> &'x u8 { x }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'x`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:13:23
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn foo(x: &'x u8) -> &'x u8 { x }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:25:12
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl<'a> X<'b> {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:27:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn inner_2(&self) -> &'b u8 {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:33:8
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl X<'b> {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:35:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn inner_3(&self) -> &'b u8 {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:43:9
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl Y<&'a u8> {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:45:25
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn inner(&self) -> &'a u8 {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:53:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn any_lifetime() -> &'b u8;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:55:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:55:40
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8;
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:60:14
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl MyTrait<'a> for Y<&'a u8> {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:60:25
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl MyTrait<'a> for Y<&'a u8> {
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'a`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:63:31
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn my_lifetime(&self) -> &'a u8 { self.0 }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:65:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn any_lifetime() -> &'b u8 { &0 }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:67:27
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error[E0261]: use of undeclared lifetime name `'b`
|
|
|
|
--> $DIR/feature-gate-in_band_lifetimes.rs:67:40
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn borrowed_lifetime(&'b self) -> &'b u8 { &*self.0 }
|
2017-12-06 09:27:47 +01:00
|
|
|
| ^^ undeclared lifetime
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0261"
|