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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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 15:15:32 -07:00
thread::spawn(move|| child("Hello".to_string()) ).join();
2012-01-04 21:14:53 -08:00
}
2010-08-11 15:05:33 -07:00
fn child(_s: String) {
2011-08-12 18:34:19 -07:00
}