]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/spawn.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' 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); }