]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/generator/issue-68112.rs
Add `rustc_on_unimplemented` on `Sync` for cell types
[rust.git] / tests / ui / generator / issue-68112.rs
index 21026f45cb823375f9cc94400a0aed20da7ef085..9def544e3d25c5119a96e5e94035b5afa941f411 100644 (file)
@@ -40,6 +40,7 @@ fn test1() {
     require_send(send_gen);
     //~^ ERROR generator cannot be sent between threads
     //~| NOTE not `Send`
+    //~| NOTE use `std::sync::RwLock` instead
 }
 
 pub fn make_gen2<T>(t: T) -> impl Generator<Return = T> {
@@ -66,6 +67,7 @@ fn test2() {
     //~| NOTE required for
     //~| NOTE required by a bound introduced by this call
     //~| NOTE captures the following types
+    //~| NOTE use `std::sync::RwLock` instead
 }
 
 fn main() {}