]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error: lifetime may not live long enough |
29967ef6 XL |
2 | --> $DIR/issue-76547.rs:20:13 |
3 | | | |
4 | LL | async fn fut(bufs: &mut [&mut [u8]]) { | |
923072b8 FG |
5 | | - - let's call the lifetime of this reference `'2` |
6 | | | | |
7 | | let's call the lifetime of this reference `'1` | |
29967ef6 | 8 | LL | ListFut(bufs).await |
923072b8 FG |
9 | | ^^^^ this usage requires that `'1` must outlive `'2` |
10 | | | |
11 | help: consider introducing a named lifetime parameter | |
12 | | | |
13 | LL | async fn fut<'a>(bufs: &'a mut [&'a mut [u8]]) { | |
14 | | ++++ ++ ++ | |
29967ef6 | 15 | |
923072b8 | 16 | error: lifetime may not live long enough |
29967ef6 XL |
17 | --> $DIR/issue-76547.rs:34:14 |
18 | | | |
19 | LL | async fn fut2(bufs: &mut [&mut [u8]]) -> i32 { | |
923072b8 FG |
20 | | - - let's call the lifetime of this reference `'2` |
21 | | | | |
22 | | let's call the lifetime of this reference `'1` | |
29967ef6 | 23 | LL | ListFut2(bufs).await |
923072b8 FG |
24 | | ^^^^ this usage requires that `'1` must outlive `'2` |
25 | | | |
26 | help: consider introducing a named lifetime parameter | |
27 | | | |
28 | LL | async fn fut2<'a>(bufs: &'a mut [&'a mut [u8]]) -> i32 { | |
29 | | ++++ ++ ++ | |
29967ef6 XL |
30 | |
31 | error: aborting due to 2 previous errors | |
32 |