summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/unresolved-ct-var-drop-tracking.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/generator/unresolved-ct-var-drop-tracking.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/generator/unresolved-ct-var-drop-tracking.stderr')
-rw-r--r--tests/ui/generator/unresolved-ct-var-drop-tracking.stderr28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/ui/generator/unresolved-ct-var-drop-tracking.stderr b/tests/ui/generator/unresolved-ct-var-drop-tracking.stderr
index 9e1fed54c..dec0141ab 100644
--- a/tests/ui/generator/unresolved-ct-var-drop-tracking.stderr
+++ b/tests/ui/generator/unresolved-ct-var-drop-tracking.stderr
@@ -1,10 +1,10 @@
error[E0277]: `[(); _]` is not a future
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ---------------------------^^^^^^
- | | |
- | | `[(); _]` is not a future
+ | ----------------------------^^^^^
+ | | ||
+ | | |`[(); _]` is not a future
| | help: remove the `.await`
| this call returns `[(); _]`
|
@@ -19,10 +19,10 @@ LL | let s = std::array::from_fn(|_| ()).await;
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
|
note: the type is part of the `async` block because of this `await`
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ^^^^^^
+ | ^^^^^
error[E0698]: type inside `async` block must be known in this context
--> $DIR/unresolved-ct-var-drop-tracking.rs:7:17
@@ -31,10 +31,10 @@ LL | let s = std::array::from_fn(|_| ()).await;
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
|
note: the type is part of the `async` block because of this `await`
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ^^^^^^
+ | ^^^^^
error[E0698]: type inside `async` block must be known in this context
--> $DIR/unresolved-ct-var-drop-tracking.rs:7:17
@@ -43,10 +43,10 @@ LL | let s = std::array::from_fn(|_| ()).await;
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
|
note: the type is part of the `async` block because of this `await`
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ^^^^^^
+ | ^^^^^
error[E0698]: type inside `async` block must be known in this context
--> $DIR/unresolved-ct-var-drop-tracking.rs:7:17
@@ -55,10 +55,10 @@ LL | let s = std::array::from_fn(|_| ()).await;
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
|
note: the type is part of the `async` block because of this `await`
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ^^^^^^
+ | ^^^^^
error[E0698]: type inside `async` block must be known in this context
--> $DIR/unresolved-ct-var-drop-tracking.rs:7:17
@@ -67,10 +67,10 @@ LL | let s = std::array::from_fn(|_| ()).await;
| ^^^^^^^^^^^^^^^^^^^ cannot infer the value of const parameter `N` declared on the function `from_fn`
|
note: the type is part of the `async` block because of this `await`
- --> $DIR/unresolved-ct-var-drop-tracking.rs:7:44
+ --> $DIR/unresolved-ct-var-drop-tracking.rs:7:45
|
LL | let s = std::array::from_fn(|_| ()).await;
- | ^^^^^^
+ | ^^^^^
error: aborting due to 6 previous errors