]> git.proxmox.com Git - rustc.git/blame - tests/ui/async-await/issue-70818.stderr
bump version to 1.75.0+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / async-await / issue-70818.stderr
CommitLineData
9ffffee4 1error: future cannot be sent between threads safely
781aab86 2 --> $DIR/issue-70818.rs:4:38
9ffffee4
FG
3 |
4LL | fn foo<T: Send, U>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ future created by async block is not `Send`
6 |
7note: captured value is not `Send`
781aab86 8 --> $DIR/issue-70818.rs:6:18
9ffffee4
FG
9 |
10LL | async { (ty, ty1) }
11 | ^^^ has type `U` which is not `Send`
12help: consider restricting type parameter `U`
13 |
14LL | fn foo<T: Send, U: std::marker::Send>(ty: T, ty1: U) -> impl Future<Output = (T, U)> + Send {
15 | +++++++++++++++++++
16
17error: aborting due to previous error
18