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 5250ef5 commit b6044c7Copy full SHA for b6044c7
src/test/run-pass/unwind-resource.rs
@@ -37,7 +37,7 @@ 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::scoped(move|| f(tx.clone()));
41
println!("hiiiiiiiii");
42
assert!(rx.recv().unwrap());
43
}
src/test/run-pass/unwind-unique.rs
@@ -19,5 +19,5 @@ fn f() {
19
20
21
22
- let _t = thread::spawn(f);
+ let _t = thread::scoped(f);
23
0 commit comments