@@ -2,65 +2,65 @@ error[E0623]: lifetime mismatch
2
2
--> $DIR/lt-ref-self-async.rs:13:9
3
3
|
4
4
LL | async fn ref_self(&self, f: &u32) -> &u32 {
5
- | ----- ----
6
- | | |
7
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
8
- | this parameter and the returned future are declared with different lifetimes...
5
+ | ---- ----
6
+ | | |
7
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
8
+ | this parameter and the returned future are declared with different lifetimes...
9
9
LL | f
10
10
| ^ ...but data from `f` is held across an await point here
11
11
12
12
error[E0623]: lifetime mismatch
13
13
--> $DIR/lt-ref-self-async.rs:19:9
14
14
|
15
15
LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
16
- | ----- ----
17
- | | |
18
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
19
- | this parameter and the returned future are declared with different lifetimes...
16
+ | ---- ----
17
+ | | |
18
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
19
+ | this parameter and the returned future are declared with different lifetimes...
20
20
LL | f
21
21
| ^ ...but data from `f` is held across an await point here
22
22
23
23
error[E0623]: lifetime mismatch
24
24
--> $DIR/lt-ref-self-async.rs:23:9
25
25
|
26
26
LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
27
- | ----- ----
28
- | | |
29
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
30
- | this parameter and the returned future are declared with different lifetimes...
27
+ | ---- ----
28
+ | | |
29
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
30
+ | this parameter and the returned future are declared with different lifetimes...
31
31
LL | f
32
32
| ^ ...but data from `f` is held across an await point here
33
33
34
34
error[E0623]: lifetime mismatch
35
35
--> $DIR/lt-ref-self-async.rs:27:9
36
36
|
37
37
LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
38
- | ----- ----
39
- | | |
40
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
41
- | this parameter and the returned future are declared with different lifetimes...
38
+ | ---- ----
39
+ | | |
40
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
41
+ | this parameter and the returned future are declared with different lifetimes...
42
42
LL | f
43
43
| ^ ...but data from `f` is held across an await point here
44
44
45
45
error[E0623]: lifetime mismatch
46
46
--> $DIR/lt-ref-self-async.rs:31:9
47
47
|
48
48
LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
49
- | ----- ----
50
- | | |
51
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
52
- | this parameter and the returned future are declared with different lifetimes...
49
+ | ---- ----
50
+ | | |
51
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
52
+ | this parameter and the returned future are declared with different lifetimes...
53
53
LL | f
54
54
| ^ ...but data from `f` is held across an await point here
55
55
56
56
error[E0623]: lifetime mismatch
57
57
--> $DIR/lt-ref-self-async.rs:35:9
58
58
|
59
59
LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
60
- | ----- ----
61
- | | |
62
- | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
63
- | this parameter and the returned future are declared with different lifetimes...
60
+ | ---- ----
61
+ | | |
62
+ | | this `async fn` implicitly returns an `impl Future<Output = &u32>`
63
+ | this parameter and the returned future are declared with different lifetimes...
64
64
LL | f
65
65
| ^ ...but data from `f` is held across an await point here
66
66
0 commit comments