summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-70594.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /tests/ui/async-await/issue-70594.stderr
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/async-await/issue-70594.stderr')
-rw-r--r--tests/ui/async-await/issue-70594.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/async-await/issue-70594.stderr b/tests/ui/async-await/issue-70594.stderr
index d3cf57d3b..9866e00bb 100644
--- a/tests/ui/async-await/issue-70594.stderr
+++ b/tests/ui/async-await/issue-70594.stderr
@@ -1,10 +1,10 @@
error[E0728]: `await` is only allowed inside `async` functions and blocks
- --> $DIR/issue-70594.rs:4:11
+ --> $DIR/issue-70594.rs:4:12
|
LL | async fn fun() {
| --- this is not `async`
LL | [1; ().await];
- | ^^^^^^ only allowed inside `async` functions and blocks
+ | ^^^^^ only allowed inside `async` functions and blocks
error[E0744]: `.await` is not allowed in a `const`
--> $DIR/issue-70594.rs:4:9
@@ -13,18 +13,18 @@ LL | [1; ().await];
| ^^^^^^^^
error[E0744]: `.await` is not allowed in a `const`
- --> $DIR/issue-70594.rs:4:11
+ --> $DIR/issue-70594.rs:4:12
|
LL | [1; ().await];
- | ^^^^^^
+ | ^^^^^
error[E0277]: `()` is not a future
- --> $DIR/issue-70594.rs:4:11
+ --> $DIR/issue-70594.rs:4:12
|
LL | [1; ().await];
- | ^^^^^^
- | |
- | `()` is not a future
+ | -^^^^^
+ | ||
+ | |`()` is not a future
| help: remove the `.await`
|
= help: the trait `Future` is not implemented for `()`