1
Fork 0

Suggest using Arc on !Send/!Sync types

This commit is contained in:
Esteban Kuber 2021-09-14 15:44:08 +00:00 committed by Esteban Küber
parent 19a647d6d8
commit 9de1a472b6
113 changed files with 223 additions and 13 deletions

View file

@ -12,6 +12,7 @@ fn main() {
//~| NOTE bound introduced by
//~| NOTE appears within the type
//~| NOTE captures the following types
//~| NOTE consider using `std::sync::Arc<NotSend>`
}
fn gimme_send<T: Send>(t: T) {