@@ -6,7 +6,7 @@ LL | async fn ref_self(&mut self, f: &u32) -> &u32 {
6
6
| |
7
7
| let's call the lifetime of this reference `'2`
8
8
LL | f
9
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
9
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
10
10
11
11
error: lifetime may not live long enough
12
12
--> $DIR/ref-mut-self-async.rs:19:9
@@ -16,7 +16,7 @@ LL | async fn ref_Self(self: &mut Self, f: &u32) -> &u32 {
16
16
| |
17
17
| let's call the lifetime of this reference `'2`
18
18
LL | f
19
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
19
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
20
20
21
21
error: lifetime may not live long enough
22
22
--> $DIR/ref-mut-self-async.rs:23:9
@@ -26,7 +26,7 @@ LL | async fn box_ref_Self(self: Box<&mut Self>, f: &u32) -> &u32 {
26
26
| |
27
27
| let's call the lifetime of this reference `'2`
28
28
LL | f
29
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
29
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
30
30
31
31
error: lifetime may not live long enough
32
32
--> $DIR/ref-mut-self-async.rs:27:9
@@ -36,7 +36,7 @@ LL | async fn pin_ref_Self(self: Pin<&mut Self>, f: &u32) -> &u32 {
36
36
| |
37
37
| let's call the lifetime of this reference `'2`
38
38
LL | f
39
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
39
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
40
40
41
41
error: lifetime may not live long enough
42
42
--> $DIR/ref-mut-self-async.rs:31:9
@@ -46,7 +46,7 @@ LL | async fn box_box_ref_Self(self: Box<Box<&mut Self>>, f: &u32) -> &u32 {
46
46
| |
47
47
| let's call the lifetime of this reference `'2`
48
48
LL | f
49
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
49
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
50
50
51
51
error: lifetime may not live long enough
52
52
--> $DIR/ref-mut-self-async.rs:35:9
@@ -56,7 +56,7 @@ LL | async fn box_pin_ref_Self(self: Box<Pin<&mut Self>>, f: &u32) -> &u32 {
56
56
| |
57
57
| let's call the lifetime of this reference `'2`
58
58
LL | f
59
- | ^ function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
59
+ | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
60
60
61
61
error: aborting due to 6 previous errors
62
62
0 commit comments