|
1 | 1 | error: lifetime may not live long enough
|
2 |
| - --> $DIR/lt-ref-self-async.rs:13:9 |
| 2 | + --> $DIR/lt-ref-self-async.rs:16:9 |
3 | 3 | |
|
4 | 4 | LL | async fn ref_self(&self, f: &u32) -> &u32 {
|
5 | 5 | | - - let's call the lifetime of this reference `'1`
|
|
9 | 9 | | ^ associated function 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 |
| - --> $DIR/lt-ref-self-async.rs:19:9 |
| 12 | + --> $DIR/lt-ref-self-async.rs:24:9 |
13 | 13 | |
|
14 | 14 | LL | async fn ref_Self(self: &Self, f: &u32) -> &u32 {
|
15 | 15 | | - - let's call the lifetime of this reference `'1`
|
|
19 | 19 | | ^ associated function 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 |
| - --> $DIR/lt-ref-self-async.rs:23:9 |
| 22 | + --> $DIR/lt-ref-self-async.rs:30:9 |
23 | 23 | |
|
24 | 24 | LL | async fn box_ref_Self(self: Box<&Self>, f: &u32) -> &u32 {
|
25 | 25 | | - - let's call the lifetime of this reference `'1`
|
|
29 | 29 | | ^ associated function 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 |
| - --> $DIR/lt-ref-self-async.rs:27:9 |
| 32 | + --> $DIR/lt-ref-self-async.rs:36:9 |
33 | 33 | |
|
34 | 34 | LL | async fn pin_ref_Self(self: Pin<&Self>, f: &u32) -> &u32 {
|
35 | 35 | | - - let's call the lifetime of this reference `'1`
|
|
39 | 39 | | ^ associated function 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 |
| - --> $DIR/lt-ref-self-async.rs:31:9 |
| 42 | + --> $DIR/lt-ref-self-async.rs:42:9 |
43 | 43 | |
|
44 | 44 | LL | async fn box_box_ref_Self(self: Box<Box<&Self>>, f: &u32) -> &u32 {
|
45 | 45 | | - - let's call the lifetime of this reference `'1`
|
|
49 | 49 | | ^ associated function 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 |
| - --> $DIR/lt-ref-self-async.rs:35:9 |
| 52 | + --> $DIR/lt-ref-self-async.rs:48:9 |
53 | 53 | |
|
54 | 54 | LL | async fn box_pin_Self(self: Box<Pin<&Self>>, f: &u32) -> &u32 {
|
55 | 55 | | - - let's call the lifetime of this reference `'1`
|
|
0 commit comments