]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/spawn.rs
Merge commit '27afd6ade4bb1123a8bf82001629b69d23d62aff' into clippyup
[rust.git] / src / test / ui / threads-sendsync / spawn.rs
1 // run-pass
2 // ignore-emscripten no threads support
3
4 use std::thread;
5
6 pub fn main() {
7     thread::spawn(move|| child(10)).join().ok().unwrap();
8 }
9
10 fn child(i: isize) { println!("{}", i); assert_eq!(i, 10); }