rust/src/test/run-pass/join.rs

16 lines
202 B
Rust
Raw Normal View History

2011-06-13 18:19:08 -07:00
// -*- rust -*-
use std;
import task::*;
2011-06-13 18:19:08 -07:00
fn main() {
let other = spawn_joinable((), child);
#error("1");
2011-07-27 14:19:39 +02:00
yield();
join(other);
#error("3");
2011-06-13 18:19:08 -07:00
}
fn child(&&_i: ()) { #error("2"); }