summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/unused-async.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/lint/unused/unused-async.stderr')
-rw-r--r--tests/ui/lint/unused/unused-async.stderr21
1 files changed, 15 insertions, 6 deletions
diff --git a/tests/ui/lint/unused/unused-async.stderr b/tests/ui/lint/unused/unused-async.stderr
index 4bcb26dc1..e93a40658 100644
--- a/tests/ui/lint/unused/unused-async.stderr
+++ b/tests/ui/lint/unused/unused-async.stderr
@@ -16,12 +16,22 @@ error: unused return value of `foo` that must be used
|
LL | foo();
| ^^^^^
+ |
+help: use `let _ = ...` to ignore the resulting value
+ |
+LL | let _ = foo();
+ | +++++++
error: unused output of future returned by `foo` that must be used
--> $DIR/unused-async.rs:33:5
|
LL | foo().await;
| ^^^^^^^^^^^
+ |
+help: use `let _ = ...` to ignore the resulting value
+ |
+LL | let _ = foo().await;
+ | +++++++
error: unused implementer of `Future` that must be used
--> $DIR/unused-async.rs:34:5
@@ -36,12 +46,11 @@ error: unused return value of `bar` that must be used
|
LL | bar();
| ^^^^^
-
-error: unused output of future returned by `bar` that must be used
- --> $DIR/unused-async.rs:36:5
|
-LL | bar().await;
- | ^^^^^^^^^^^
+help: use `let _ = ...` to ignore the resulting value
+ |
+LL | let _ = bar();
+ | +++++++
error: unused implementer of `Future` that must be used
--> $DIR/unused-async.rs:37:5
@@ -51,5 +60,5 @@ LL | baz();
|
= note: futures do nothing unless you `.await` or poll them
-error: aborting due to 7 previous errors
+error: aborting due to 6 previous errors