@@ -7,16 +7,15 @@ LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
77 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
88
99error: lifetime may not live long enough
10- --> $DIR/ref-mut-self-async.rs:13:51
11- |
12- LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
13- | _______________________-___________________________^
14- | | |
15- | | lifetime `'_` defined here
16- | | lifetime `'_` defined here
17- LL | | f
18- LL | | }
19- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
10+ --> $DIR/ref-mut-self-async.rs:14:9
11+ |
12+ LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
13+ | -
14+ | |
15+ | lifetime `'_` defined here
16+ | lifetime `'_` defined here
17+ LL | f
18+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
2019
2120error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2221 --> $DIR/ref-mut-self-async.rs:19:52
@@ -27,16 +26,15 @@ LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
2726 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
2827
2928error: lifetime may not live long enough
30- --> $DIR/ref-mut-self-async.rs:19:57
31- |
32- LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
33- | _____________________________-___________________________^
34- | | |
35- | | lifetime `'_` defined here
36- | | lifetime `'_` defined here
37- LL | | f
38- LL | | }
39- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
29+ --> $DIR/ref-mut-self-async.rs:20:9
30+ |
31+ LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
32+ | -
33+ | |
34+ | lifetime `'_` defined here
35+ | lifetime `'_` defined here
36+ LL | f
37+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
4038
4139error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
4240 --> $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 {
4745 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
4846
4947error: lifetime may not live long enough
50- --> $DIR/ref-mut-self-async.rs:23:66
51- |
52- LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
53- | _____________________________________-____________________________^
54- | | |
55- | | lifetime `'_` defined here
56- | | lifetime `'_` defined here
57- LL | | f
58- LL | | }
59- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
48+ --> $DIR/ref-mut-self-async.rs:24:9
49+ |
50+ LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
51+ | -
52+ | |
53+ | lifetime `'_` defined here
54+ | lifetime `'_` defined here
55+ LL | f
56+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
6057
6158error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
6259 --> $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 {
6764 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
6865
6966error: lifetime may not live long enough
70- --> $DIR/ref-mut-self-async.rs:27:66
71- |
72- LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
73- | _____________________________________-____________________________^
74- | | |
75- | | lifetime `'_` defined here
76- | | lifetime `'_` defined here
77- LL | | f
78- LL | | }
79- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
67+ --> $DIR/ref-mut-self-async.rs:28:9
68+ |
69+ LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
70+ | -
71+ | |
72+ | lifetime `'_` defined here
73+ | lifetime `'_` defined here
74+ LL | f
75+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
8076
8177error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
8278 --> $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 {
8783 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
8884
8985error: lifetime may not live long enough
90- --> $DIR/ref-mut-self-async.rs:31:75
91- |
92- LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
93- | _____________________________________________-_____________________________^
94- | | |
95- | | lifetime `'_` defined here
96- | | lifetime `'_` defined here
97- LL | | f
98- LL | | }
99- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
86+ --> $DIR/ref-mut-self-async.rs:32:9
87+ |
88+ LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
89+ | -
90+ | |
91+ | lifetime `'_` defined here
92+ | lifetime `'_` defined here
93+ LL | f
94+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
10095
10196error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
10297 --> $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 {
107102 = note: hidden type `impl std::future::Future` captures lifetime '_#15r
108103
109104error: lifetime may not live long enough
110- --> $DIR/ref-mut-self-async.rs:35:75
111- |
112- LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
113- | _____________________________________________-_____________________________^
114- | | |
115- | | lifetime `'_` defined here
116- | | lifetime `'_` defined here
117- LL | | f
118- LL | | }
119- | |_____^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
105+ --> $DIR/ref-mut-self-async.rs:36:9
106+ |
107+ LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
108+ | -
109+ | |
110+ | lifetime `'_` defined here
111+ | lifetime `'_` defined here
112+ LL | f
113+ | ^ function was supposed to return data with lifetime `'_` but it is returning data with lifetime `'_`
120114
121115error: aborting due to 12 previous errors
122116
0 commit comments