2 #![allow(unused_must_use)]
3 // ignore-emscripten no threads support
7 fn x(s: String, n: isize) {
13 let t1 = thread::spawn(|| x("hello from first spawned fn".to_string(), 65) );
14 let t2 = thread::spawn(|| x("hello from second spawned fn".to_string(), 66) );
15 let t3 = thread::spawn(|| x("hello from third spawned fn".to_string(), 67) );
19 println!("parent sleeping");