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

16 lines
198 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() {
2012-01-04 21:14:53 -08:00
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
}
2012-01-04 21:14:53 -08:00
fn child() { #error("2"); }