From 9de1a472b68ed85f396b2e2cc79c3ef17584d6e1 Mon Sep 17 00:00:00 2001 From: Esteban Kuber Date: Tue, 14 Sep 2021 15:44:08 +0000 Subject: Suggest using `Arc` on `!Send`/`!Sync` types --- tests/ui/error-codes/E0277-2.stderr | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/ui/error-codes') diff --git a/tests/ui/error-codes/E0277-2.stderr b/tests/ui/error-codes/E0277-2.stderr index a2abf37931a..38ae0aa6aa5 100644 --- a/tests/ui/error-codes/E0277-2.stderr +++ b/tests/ui/error-codes/E0277-2.stderr @@ -5,6 +5,7 @@ LL | is_send::(); | ^^^ `*const u8` cannot be sent between threads safely | = help: within `Foo`, the trait `Send` is not implemented for `*const u8` + = note: consider using `std::sync::Arc<*const u8>`; for more information visit note: required because it appears within the type `Baz` --> $DIR/E0277-2.rs:9:8 | -- cgit 1.4.1-3-g733a5