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.

12 lines
182 B
Rust
Raw Permalink Normal View History

//@ run-pass
#![allow(unused_must_use)]
//@ needs-threads
use std::thread;
pub fn main() {
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) {}