about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-10-16 10:38:48 +0200
committerRalf Jung <post@ralfj.de>2022-10-16 11:34:24 +0200
commit73d655e9c2106566f328de28aeff6fd3a8ee8e21 (patch)
treeca86087ce5a6a185ee6491b860e6155afc189ab3 /src/test
parentedabf59ca4646b3fc1a961c26431215001043f6a (diff)
downloadrust-73d655e9c2106566f328de28aeff6fd3a8ee8e21.tar.gz
rust-73d655e9c2106566f328de28aeff6fd3a8ee8e21.zip
remove redundant Send impls for references
also move them next to the trait they are implementing
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/async-await/async-fn-nonsend.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/async-await/async-fn-nonsend.stderr b/src/test/ui/async-await/async-fn-nonsend.stderr
index 40ad46b4862..a7b872fe444 100644
--- a/src/test/ui/async-await/async-fn-nonsend.stderr
+++ b/src/test/ui/async-await/async-fn-nonsend.stderr
@@ -27,7 +27,7 @@ error: future cannot be sent between threads safely
 LL |     assert_send(non_sync_with_method_call());
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ future returned by `non_sync_with_method_call` is not `Send`
    |
-   = help: the trait `Send` is not implemented for `dyn std::fmt::Write`
+   = help: within `impl Future<Output = ()>`, the trait `Send` is not implemented for `dyn std::fmt::Write`
 note: future is not `Send` as this value is used across an await
   --> $DIR/async-fn-nonsend.rs:46:14
    |