]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/no-params-non-move-async-closure.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / async-await / no-params-non-move-async-closure.stderr
1 error[E0708]: `async` non-`move` closures with parameters are not currently supported
2 --> $DIR/no-params-non-move-async-closure.rs:6:13
3 |
4 LL | let _ = async |x: u8| {};
5 | ^^^^^^^^^^^^^
6 |
7 = help: consider using `let` statements to manually capture variables by reference before entering an `async move` closure
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0708`.