]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-76547.stderr
New upstream version 1.50.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-76547.stderr
CommitLineData
29967ef6
XL
1error[E0623]: lifetime mismatch
2 --> $DIR/issue-76547.rs:20:13
3 |
4LL | async fn fut(bufs: &mut [&mut [u8]]) {
5 | --------- -
6 | | |
7 | | this `async fn` implicitly returns an `impl Future<Output = ()>`
8 | this parameter and the returned future are declared with different lifetimes...
9LL | ListFut(bufs).await
10 | ^^^^ ...but data from `bufs` is held across an await point here
11
12error[E0623]: lifetime mismatch
13 --> $DIR/issue-76547.rs:34:14
14 |
15LL | async fn fut2(bufs: &mut [&mut [u8]]) -> i32 {
16 | --------- ---
17 | | |
18 | | this `async fn` implicitly returns an `impl Future<Output = i32>`
19 | this parameter and the returned future are declared with different lifetimes...
20LL | ListFut2(bufs).await
21 | ^^^^ ...but data from `bufs` is held across an await point here
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0623`.