summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/missing-send-bound.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/in-trait/missing-send-bound.stderr')
-rw-r--r--tests/ui/async-await/in-trait/missing-send-bound.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/async-await/in-trait/missing-send-bound.stderr b/tests/ui/async-await/in-trait/missing-send-bound.stderr
index 18185b755..7e59d94d4 100644
--- a/tests/ui/async-await/in-trait/missing-send-bound.stderr
+++ b/tests/ui/async-await/in-trait/missing-send-bound.stderr
@@ -15,6 +15,11 @@ note: required by a bound in `assert_is_send`
|
LL | fn assert_is_send(_: impl Send) {}
| ^^^^ required by this bound in `assert_is_send`
+help: `Send` can be made part of the associated future's guarantees for all implementations of `Foo::bar`
+ |
+LL - async fn bar();
+LL + fn bar() -> impl std::future::Future<Output = ()> + Send;
+ |
error: aborting due to previous error