diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-09-14 15:44:08 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-08-09 14:04:10 +0000 |
| commit | 9de1a472b68ed85f396b2e2cc79c3ef17584d6e1 (patch) | |
| tree | 0e93df76a07e347476929f16ca8da0084d6c18cc /tests/ui/fmt/send-sync.stderr | |
| parent | 19a647d6d8f6ead984d7b431c4a8376e02c543e6 (diff) | |
| download | rust-9de1a472b68ed85f396b2e2cc79c3ef17584d6e1.tar.gz rust-9de1a472b68ed85f396b2e2cc79c3ef17584d6e1.zip | |
Suggest using `Arc` on `!Send`/`!Sync` types
Diffstat (limited to 'tests/ui/fmt/send-sync.stderr')
| -rw-r--r-- | tests/ui/fmt/send-sync.stderr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/fmt/send-sync.stderr b/tests/ui/fmt/send-sync.stderr index e3ebe6cdcb8..e431501e9f8 100644 --- a/tests/ui/fmt/send-sync.stderr +++ b/tests/ui/fmt/send-sync.stderr @@ -7,6 +7,7 @@ LL | send(format_args!("{:?}", c)); | required by a bound introduced by this call | = help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque` + = note: consider using `std::sync::Arc<core::fmt::rt::Opaque>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html> = note: required because it appears within the type `&core::fmt::rt::Opaque` note: required because it appears within the type `Argument<'_>` --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL @@ -29,6 +30,7 @@ LL | sync(format_args!("{:?}", c)); | required by a bound introduced by this call | = help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque` + = note: consider using `std::sync::Arc<core::fmt::rt::Opaque>`; for more information visit <https://doc.rust-lang.org/book/ch16-03-shared-state.html> = note: required because it appears within the type `&core::fmt::rt::Opaque` note: required because it appears within the type `Argument<'_>` --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL |
