about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/task-life-0.rs
blob: c2440bc44bc3d34f4b01b1ebebef63580628168e (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ run-pass
#![allow(unused_must_use)]
//@ needs-threads

use std::thread;

pub fn main() {
    thread::spawn(move || child("Hello".to_string())).join();
}

fn child(_s: String) {}