rust/src/test/run-pass/join.rs
2012-01-06 22:40:31 -08:00

16 lines
198 B
Rust

// -*- rust -*-
use std;
import task::*;
fn main() {
let other = spawn_joinable {|| child(); };
#error("1");
yield();
join(other);
#error("3");
}
fn child() { #error("2"); }