diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/threads-sendsync/task-life-0.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/threads-sendsync/task-life-0.rs b/src/test/ui/threads-sendsync/task-life-0.rs new file mode 100644 index 000000000..785cff9a0 --- /dev/null +++ b/src/test/ui/threads-sendsync/task-life-0.rs @@ -0,0 +1,14 @@ +// run-pass +#![allow(unused_must_use)] +// ignore-emscripten no threads support +// pretty-expanded FIXME #23616 + +use std::thread; + +pub fn main() { + thread::spawn(move|| child("Hello".to_string()) ).join(); +} + +fn child(_s: String) { + +} |