Files
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 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-04 21:14:53 -08:00
}
2010-08-11 15:05:33 -07:00
fn child(_s: String) {}