]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(unused_must_use)] |
7453a54e | 3 | // ignore-emscripten no threads support |
c34b1796 AL |
4 | // pretty-expanded FIXME #23616 |
5 | ||
c34b1796 | 6 | use std::thread; |
970d7e83 | 7 | |
223e47cc | 8 | pub fn main() { |
9346a6ac | 9 | thread::spawn(move|| child("Hello".to_string()) ).join(); |
223e47cc LB |
10 | } |
11 | ||
1a4d82fc | 12 | fn child(_s: String) { |
223e47cc LB |
13 | |
14 | } |