We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31dc5bb commit 8a68b40Copy full SHA for 8a68b40
library/std/src/sync/mpsc/tests.rs
@@ -706,3 +706,17 @@ fn issue_32114() {
706
let _ = tx.send(123);
707
assert_eq!(tx.send(123), Err(SendError(123)));
708
}
709
+
710
+#[test]
711
+fn issue_39364() {
712
+ let (tx, rx) = channel::<()>();
713
+ let t = thread::spawn(move || {
714
+ thread::sleep(Duration::from_millis(300));
715
+ let _ = tx.clone();
716
+ crate::mem::forget(tx);
717
+ });
718
719
+ let _ = rx.recv_timeout(Duration::from_millis(500));
720
+ t.join().unwrap();
721
722
+}
0 commit comments