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.
2 parents 8eb655b + 2408436 commit d6d3377Copy full SHA for d6d3377
src/test/run-pass/unwind-resource.rs
@@ -37,7 +37,8 @@ fn f(tx: Sender<bool>) {
37
38
pub fn main() {
39
let (tx, rx) = channel();
40
- let _t = thread::spawn(move|| f(tx.clone()));
+ let t = thread::spawn(move|| f(tx.clone()));
41
println!("hiiiiiiiii");
42
assert!(rx.recv().unwrap());
43
+ drop(t.join());
44
}
src/test/run-pass/unwind-unique.rs
@@ -19,5 +19,6 @@ fn f() {
19
20
21
22
- let _t = thread::spawn(f);
+ let t = thread::spawn(f);
23
24
0 commit comments