]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/incorrect-move-async-order-issue-79694.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / async-await / incorrect-move-async-order-issue-79694.stderr
1 error: the order of `move` and `async` is incorrect
2   --> $DIR/incorrect-move-async-order-issue-79694.rs:7:13
3    |
4 LL |     let _ = move async { };
5    |             ^^^^^^^^^^
6    |
7 help: try switching the order
8    |
9 LL |     let _ = async move { };
10    |             ~~~~~~~~~~
11
12 error: aborting due to previous error
13