| |
| let's call the lifetime of this reference `'2`
LL | f
- | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
+ | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
error: lifetime may not live long enough
--> $DIR/ref-struct-async.rs:17:9
| |
| let's call the lifetime of this reference `'2`
LL | f
- | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
+ | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
error: lifetime may not live long enough
--> $DIR/ref-struct-async.rs:21:9
| |
| let's call the lifetime of this reference `'2`
LL | f
- | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
+ | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
error: lifetime may not live long enough
--> $DIR/ref-struct-async.rs:25:9
| |
| let's call the lifetime of this reference `'2`
LL | f
- | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
+ | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
error: lifetime may not live long enough
--> $DIR/ref-struct-async.rs:29:9
| |
| let's call the lifetime of this reference `'2`
LL | f
- | ^ method was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
+ | ^ associated function was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
error: aborting due to 5 previous errors