rust/src/test/run-pass/task-comm-1.rs

19 lines
221 B
Rust

// xfail-stage0
use std;
import std::task::join;
fn main() -> () {
test00();
}
fn start() {
log "Started / Finished task.";
}
fn test00() {
let task t = spawn start();
join(t);
log "Completing.";
}