diff options
| author | Ralf Jung <post@ralfj.de> | 2022-10-16 10:38:48 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-10-16 11:34:24 +0200 |
| commit | 73d655e9c2106566f328de28aeff6fd3a8ee8e21 (patch) | |
| tree | ca86087ce5a6a185ee6491b860e6155afc189ab3 /src/test | |
| parent | edabf59ca4646b3fc1a961c26431215001043f6a (diff) | |
| download | rust-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.stderr | 2 |
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 | |
