@@ -7,16 +7,15 @@ LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
7
7
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
8
8
9
9
error: 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 `'_`
20
19
21
20
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
22
21
--> $DIR/ref-mut-self-async.rs:19:52
@@ -27,16 +26,15 @@ LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
27
26
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
28
27
29
28
error: 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 `'_`
40
38
41
39
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
42
40
--> $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 {
47
45
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
48
46
49
47
error: 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 `'_`
60
57
61
58
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
62
59
--> $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 {
67
64
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
68
65
69
66
error: 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 `'_`
80
76
81
77
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
82
78
--> $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 {
87
83
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
88
84
89
85
error: 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 `'_`
100
95
101
96
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
102
97
--> $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 {
107
102
= note: hidden type `impl std::future::Future` captures lifetime '_#15r
108
103
109
104
error: 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 `'_`
120
114
121
115
error: aborting due to 12 previous errors
122
116
0 commit comments