summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr')
-rw-r--r--tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr b/tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr
new file mode 100644
index 000000000..5367b986d
--- /dev/null
+++ b/tests/ui/async-await/incorrect-move-async-order-issue-79694.stderr
@@ -0,0 +1,13 @@
+error: the order of `move` and `async` is incorrect
+ --> $DIR/incorrect-move-async-order-issue-79694.rs:7:13
+ |
+LL | let _ = move async { };
+ | ^^^^^^^^^^
+ |
+help: try switching the order
+ |
+LL | let _ = async move { };
+ | ~~~~~~~~~~
+
+error: aborting due to previous error
+