2 // error-pattern:Ensure that the child thread runs by panicking
3 // ignore-emscripten Needs threads.
8 // the purpose of this test is to make sure that thread::spawn()
9 // works when provided with a bare function:
10 let r = thread::spawn(startfn).join();
17 assert!("Ensure that the child thread runs by panicking".is_empty());