]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/no-params-non-move-async-closure.stderr
Rollup merge of #106944 - Nilstrieb:there-once-was-a-diagnostic, r=WaffleLapkin
[rust.git] / tests / 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`.