]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-76547.nll.stderr
Override rustc version in ui and mir-opt tests to get stable hashes
[rust.git] / src / test / ui / async-await / issue-76547.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-76547.rs:20:13
3    |
4 LL | async fn fut(bufs: &mut [&mut [u8]]) {
5    |                    -     - let's call the lifetime of this reference `'2`
6    |                    |
7    |                    let's call the lifetime of this reference `'1`
8 LL |     ListFut(bufs).await
9    |             ^^^^ this usage requires that `'1` must outlive `'2`
10
11 error: lifetime may not live long enough
12   --> $DIR/issue-76547.rs:34:14
13    |
14 LL | async fn fut2(bufs: &mut [&mut [u8]]) -> i32 {
15    |                     -     - let's call the lifetime of this reference `'2`
16    |                     |
17    |                     let's call the lifetime of this reference `'1`
18 LL |     ListFut2(bufs).await
19    |              ^^^^ this usage requires that `'1` must outlive `'2`
20
21 error: aborting due to 2 previous errors
22