]>
git.proxmox.com Git - rustc.git/blob - src/test/run-fail/task-spawn-barefn.rs
1 // error-pattern:Ensure that the child thread runs by panicking
2 // ignore-emscripten Needs threads.
7 // the purpose of this test is to make sure that thread::spawn()
8 // works when provided with a bare function:
9 let r
= thread
::spawn(startfn
).join();
16 assert
!("Ensure that the child thread runs by panicking".is_empty());