rust/tests/ui/threads-sendsync/task-life-0.rs

15 lines
217 B
Rust
Raw Normal View History

//@ run-pass
#![allow(unused_must_use)]
//@ needs-threads
//@ pretty-expanded FIXME #23616
use std::thread;
pub fn main() {
2015-04-13 22:15:32 +00:00
thread::spawn(move|| child("Hello".to_string()) ).join();
2012-01-05 05:14:53 +00:00
}
2010-08-11 22:05:33 +00:00
fn child(_s: String) {
2011-08-13 01:34:19 +00:00
}