]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-76547.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-76547.stderr
CommitLineData
923072b8 1error: lifetime may not live long enough
29967ef6
XL
2 --> $DIR/issue-76547.rs:20:13
3 |
4LL | 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 8LL | ListFut(bufs).await
923072b8
FG
9 | ^^^^ this usage requires that `'1` must outlive `'2`
10 |
11help: consider introducing a named lifetime parameter
12 |
13LL | async fn fut<'a>(bufs: &'a mut [&'a mut [u8]]) {
14 | ++++ ++ ++
29967ef6 15
923072b8 16error: lifetime may not live long enough
29967ef6
XL
17 --> $DIR/issue-76547.rs:34:14
18 |
19LL | 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 23LL | ListFut2(bufs).await
923072b8
FG
24 | ^^^^ this usage requires that `'1` must outlive `'2`
25 |
26help: consider introducing a named lifetime parameter
27 |
28LL | async fn fut2<'a>(bufs: &'a mut [&'a mut [u8]]) -> i32 {
29 | ++++ ++ ++
29967ef6
XL
30
31error: aborting due to 2 previous errors
32