summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/issue-96555.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:02:58 +0000
commit698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch)
tree173a775858bd501c378080a10dca74132f05bc50 /src/test/ui/suggestions/issue-96555.stderr
parentInitial commit. (diff)
downloadrustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz
rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/suggestions/issue-96555.stderr')
-rw-r--r--src/test/ui/suggestions/issue-96555.stderr66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/test/ui/suggestions/issue-96555.stderr b/src/test/ui/suggestions/issue-96555.stderr
new file mode 100644
index 000000000..a1a603cf2
--- /dev/null
+++ b/src/test/ui/suggestions/issue-96555.stderr
@@ -0,0 +1,66 @@
+error[E0277]: `()` is not a future
+ --> $DIR/issue-96555.rs:4:12
+ |
+LL | m::f1().await;
+ | -------^^^^^^ `()` is not a future
+ | |
+ | this call returns `()`
+ |
+ = help: the trait `Future` is not implemented for `()`
+ = note: () must be a future or must implement `IntoFuture` to be awaited
+ = note: required because of the requirements on the impl of `IntoFuture` for `()`
+help: remove the `.await`
+ |
+LL - m::f1().await;
+LL + m::f1();
+ |
+help: alternatively, consider making `fn f1` asynchronous
+ |
+LL | pub async fn f1() {}
+ | +++++
+
+error[E0277]: `()` is not a future
+ --> $DIR/issue-96555.rs:5:12
+ |
+LL | m::f2().await;
+ | -------^^^^^^ `()` is not a future
+ | |
+ | this call returns `()`
+ |
+ = help: the trait `Future` is not implemented for `()`
+ = note: () must be a future or must implement `IntoFuture` to be awaited
+ = note: required because of the requirements on the impl of `IntoFuture` for `()`
+help: remove the `.await`
+ |
+LL - m::f2().await;
+LL + m::f2();
+ |
+help: alternatively, consider making `fn f2` asynchronous
+ |
+LL | pub(crate) async fn f2() {}
+ | +++++
+
+error[E0277]: `()` is not a future
+ --> $DIR/issue-96555.rs:6:12
+ |
+LL | m::f3().await;
+ | -------^^^^^^ `()` is not a future
+ | |
+ | this call returns `()`
+ |
+ = help: the trait `Future` is not implemented for `()`
+ = note: () must be a future or must implement `IntoFuture` to be awaited
+ = note: required because of the requirements on the impl of `IntoFuture` for `()`
+help: remove the `.await`
+ |
+LL - m::f3().await;
+LL + m::f3();
+ |
+help: alternatively, consider making `fn f3` asynchronous
+ |
+LL | pub async
+ | +++++
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0277`.