./x.py test --bless --compare-mode=nll
This commit is contained in:
parent
19c07cc2b2
commit
a807032f9e
6 changed files with 239 additions and 269 deletions
|
@ -7,19 +7,19 @@ LL | async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:8:50
|
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:8:52
|
||||||
|
|
|
|
||||||
LL | async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
|
LL | async fn a(self: Pin<&Foo>, f: &Foo) -> &Foo { f }
|
||||||
| - ^^^^^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
| - ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |
|
| |
|
||||||
| lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:11:73
|
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:11:75
|
||||||
|
|
|
|
||||||
LL | async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) }
|
LL | async fn c(self: Pin<&Self>, f: &Foo, g: &Foo) -> (Pin<&Foo>, &Foo) { (self, f) }
|
||||||
| - ^^^^^^^^^^^^^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
| - ^^^^^^^^^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |
|
| |
|
||||||
| lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
|
@ -33,12 +33,11 @@ LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:17:62
|
--> $DIR/arbitrary_self_types_pin_lifetime_mismatch-async.rs:17:64
|
||||||
|
|
|
|
||||||
LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
|
LL | async fn bar<'a>(self: Alias<&Self>, arg: &'a ()) -> &() { arg }
|
||||||
| -- - ^^^^^^^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'a`
|
| -- - lifetime `'_` defined here ^^^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'a`
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
|
||||||
| lifetime `'a` defined here
|
| lifetime `'a` defined here
|
||||||
|
|
||||||
error: aborting due to 5 previous errors
|
error: aborting due to 5 previous errors
|
||||||
|
|
|
@ -7,16 +7,15 @@ LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:13:47
|
--> $DIR/lt-ref-self-async.rs:14:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
||||||
| _______________________-_______________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/lt-ref-self-async.rs:19:48
|
--> $DIR/lt-ref-self-async.rs:19:48
|
||||||
|
@ -27,16 +26,15 @@ LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:19:53
|
--> $DIR/lt-ref-self-async.rs:20:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
||||||
| _____________________________-_______________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/lt-ref-self-async.rs:23:57
|
--> $DIR/lt-ref-self-async.rs:23:57
|
||||||
|
@ -47,16 +45,15 @@ LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:23:62
|
--> $DIR/lt-ref-self-async.rs:24:9
|
||||||
|
|
|
|
||||||
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/lt-ref-self-async.rs:27:57
|
--> $DIR/lt-ref-self-async.rs:27:57
|
||||||
|
@ -67,16 +64,15 @@ LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:27:62
|
--> $DIR/lt-ref-self-async.rs:28:9
|
||||||
|
|
|
|
||||||
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/lt-ref-self-async.rs:31:66
|
--> $DIR/lt-ref-self-async.rs:31:66
|
||||||
|
@ -87,16 +83,15 @@ LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:31:71
|
--> $DIR/lt-ref-self-async.rs:32:9
|
||||||
|
|
|
|
||||||
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
||||||
| _____________________________________________-_________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/lt-ref-self-async.rs:35:62
|
--> $DIR/lt-ref-self-async.rs:35:62
|
||||||
|
@ -107,16 +102,15 @@ LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#23r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/lt-ref-self-async.rs:35:67
|
--> $DIR/lt-ref-self-async.rs:36:9
|
||||||
|
|
|
|
||||||
LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
||||||
| _________________________________________-_________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error: aborting due to 12 previous errors
|
error: aborting due to 12 previous errors
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,15 @@ LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:13:51
|
--> $DIR/ref-mut-self-async.rs:14:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
|
LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
|
||||||
| _______________________-___________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-self-async.rs:19:52
|
--> $DIR/ref-mut-self-async.rs:19:52
|
||||||
|
@ -27,16 +26,15 @@ LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:19:57
|
--> $DIR/ref-mut-self-async.rs:20:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
|
LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
|
||||||
| _____________________________-___________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-self-async.rs:23:61
|
--> $DIR/ref-mut-self-async.rs:23:61
|
||||||
|
@ -47,16 +45,15 @@ LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:23:66
|
--> $DIR/ref-mut-self-async.rs:24:9
|
||||||
|
|
|
|
||||||
LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
|
LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-self-async.rs:27:61
|
--> $DIR/ref-mut-self-async.rs:27:61
|
||||||
|
@ -67,16 +64,15 @@ LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:27:66
|
--> $DIR/ref-mut-self-async.rs:28:9
|
||||||
|
|
|
|
||||||
LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
|
LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-self-async.rs:31:70
|
--> $DIR/ref-mut-self-async.rs:31:70
|
||||||
|
@ -87,16 +83,15 @@ LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:31:75
|
--> $DIR/ref-mut-self-async.rs:32:9
|
||||||
|
|
|
|
||||||
LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
|
LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
|
||||||
| _____________________________________________-_____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-self-async.rs:35:70
|
--> $DIR/ref-mut-self-async.rs:35:70
|
||||||
|
@ -107,16 +102,15 @@ LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-self-async.rs:35:75
|
--> $DIR/ref-mut-self-async.rs:36:9
|
||||||
|
|
|
|
||||||
LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
|
LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
|
||||||
| _____________________________________________-_____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error: aborting due to 12 previous errors
|
error: aborting due to 12 previous errors
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,15 @@ LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-struct-async.rs:13:61
|
--> $DIR/ref-mut-struct-async.rs:14:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
|
LL | async fn ref_Struct(self: &mut Struct, f: &u32) -> &u32 {
|
||||||
| _______________________________-_____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-struct-async.rs:17:65
|
--> $DIR/ref-mut-struct-async.rs:17:65
|
||||||
|
@ -27,16 +26,15 @@ LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-struct-async.rs:17:70
|
--> $DIR/ref-mut-struct-async.rs:18:9
|
||||||
|
|
|
|
||||||
LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
|
LL | async fn box_ref_Struct(self: Box<&mut Struct>, f: &u32) -> &u32 {
|
||||||
| _______________________________________-______________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-struct-async.rs:21:65
|
--> $DIR/ref-mut-struct-async.rs:21:65
|
||||||
|
@ -47,16 +45,15 @@ LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-struct-async.rs:21:70
|
--> $DIR/ref-mut-struct-async.rs:22:9
|
||||||
|
|
|
|
||||||
LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
|
LL | async fn pin_ref_Struct(self: Pin<&mut Struct>, f: &u32) -> &u32 {
|
||||||
| _______________________________________-______________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-struct-async.rs:25:74
|
--> $DIR/ref-mut-struct-async.rs:25:74
|
||||||
|
@ -67,16 +64,15 @@ LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-struct-async.rs:25:79
|
--> $DIR/ref-mut-struct-async.rs:26:9
|
||||||
|
|
|
|
||||||
LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
|
LL | async fn box_box_ref_Struct(self: Box<Box<&mut Struct>>, f: &u32) -> &u32 {
|
||||||
| _______________________________________________-_______________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-mut-struct-async.rs:29:74
|
--> $DIR/ref-mut-struct-async.rs:29:74
|
||||||
|
@ -87,16 +83,15 @@ LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-mut-struct-async.rs:29:79
|
--> $DIR/ref-mut-struct-async.rs:30:9
|
||||||
|
|
|
|
||||||
LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
|
LL | async fn box_pin_ref_Struct(self: Box<Pin<&mut Struct>>, f: &u32) -> &u32 {
|
||||||
| _______________________________________________-_______________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error: aborting due to 10 previous errors
|
error: aborting due to 10 previous errors
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,15 @@ LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:22:47
|
--> $DIR/ref-self-async.rs:23:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
||||||
| _______________________-_______________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:28:48
|
--> $DIR/ref-self-async.rs:28:48
|
||||||
|
@ -27,16 +26,15 @@ LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:28:53
|
--> $DIR/ref-self-async.rs:29:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
||||||
| _____________________________-_______________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:32:57
|
--> $DIR/ref-self-async.rs:32:57
|
||||||
|
@ -47,16 +45,15 @@ LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:32:62
|
--> $DIR/ref-self-async.rs:33:9
|
||||||
|
|
|
|
||||||
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:36:57
|
--> $DIR/ref-self-async.rs:36:57
|
||||||
|
@ -67,16 +64,15 @@ LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:36:62
|
--> $DIR/ref-self-async.rs:37:9
|
||||||
|
|
|
|
||||||
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
||||||
| _____________________________________-________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:40:66
|
--> $DIR/ref-self-async.rs:40:66
|
||||||
|
@ -87,16 +83,15 @@ LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:40:71
|
--> $DIR/ref-self-async.rs:41:9
|
||||||
|
|
|
|
||||||
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
||||||
| _____________________________________________-_________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:44:66
|
--> $DIR/ref-self-async.rs:44:66
|
||||||
|
@ -107,16 +102,15 @@ LL | async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:44:71
|
--> $DIR/ref-self-async.rs:45:9
|
||||||
|
|
|
|
||||||
LL | async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
LL | async fn box_pin_ref_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
||||||
| _____________________________________________-_________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-self-async.rs:48:69
|
--> $DIR/ref-self-async.rs:48:69
|
||||||
|
@ -127,16 +121,15 @@ LL | async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-self-async.rs:48:73
|
--> $DIR/ref-self-async.rs:49:9
|
||||||
|
|
|
|
||||||
LL | async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
|
LL | async fn wrap_ref_Self_Self(self: Wrap<&Self, Self>, f: &u8) -> &u8 {
|
||||||
| ____________________________________________-____________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error: aborting due to 14 previous errors
|
error: aborting due to 14 previous errors
|
||||||
|
|
||||||
|
|
|
@ -7,16 +7,15 @@ LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-struct-async.rs:13:57
|
--> $DIR/ref-struct-async.rs:14:9
|
||||||
|
|
|
|
||||||
LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
|
LL | async fn ref_Struct(self: &Struct, f: &u32) -> &u32 {
|
||||||
| _______________________________-_________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-struct-async.rs:17:61
|
--> $DIR/ref-struct-async.rs:17:61
|
||||||
|
@ -27,16 +26,15 @@ LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-struct-async.rs:17:66
|
--> $DIR/ref-struct-async.rs:18:9
|
||||||
|
|
|
|
||||||
LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
|
LL | async fn box_ref_Struct(self: Box<&Struct>, f: &u32) -> &u32 {
|
||||||
| _______________________________________-__________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-struct-async.rs:21:61
|
--> $DIR/ref-struct-async.rs:21:61
|
||||||
|
@ -47,16 +45,15 @@ LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-struct-async.rs:21:66
|
--> $DIR/ref-struct-async.rs:22:9
|
||||||
|
|
|
|
||||||
LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
|
LL | async fn pin_ref_Struct(self: Pin<&Struct>, f: &u32) -> &u32 {
|
||||||
| _______________________________________-__________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-struct-async.rs:25:70
|
--> $DIR/ref-struct-async.rs:25:70
|
||||||
|
@ -67,16 +64,15 @@ LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-struct-async.rs:25:75
|
--> $DIR/ref-struct-async.rs:26:9
|
||||||
|
|
|
|
||||||
LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
|
LL | async fn box_box_ref_Struct(self: Box<Box<&Struct>>, f: &u32) -> &u32 {
|
||||||
| _______________________________________________-___________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
|
||||||
--> $DIR/ref-struct-async.rs:29:66
|
--> $DIR/ref-struct-async.rs:29:66
|
||||||
|
@ -87,16 +83,15 @@ LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
|
||||||
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
|
||||||
|
|
||||||
error: lifetime may not live long enough
|
error: lifetime may not live long enough
|
||||||
--> $DIR/ref-struct-async.rs:29:71
|
--> $DIR/ref-struct-async.rs:30:9
|
||||||
|
|
|
|
||||||
LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
|
LL | async fn box_pin_Struct(self: Box<Pin<&Struct>>, f: &u32) -> &u32 {
|
||||||
| ___________________________________________-___________________________^
|
| -
|
||||||
| | |
|
| |
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
| | lifetime `'_` defined here
|
| lifetime `'_` defined here
|
||||||
LL | | f
|
LL | f
|
||||||
LL | | }
|
| ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
||||||
| |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
|
|
||||||
|
|
||||||
error: aborting due to 10 previous errors
|
error: aborting due to 10 previous errors
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue