24 lines
242 B
Rust
24 lines
242 B
Rust
// xfail-stage0
|
|
// xfail-stage1
|
|
// xfail-stage2
|
|
// -*- rust -*-
|
|
|
|
fn main() {
|
|
auto other = spawn child();
|
|
log "1";
|
|
yield;
|
|
log "2";
|
|
yield;
|
|
log "3";
|
|
join other;
|
|
}
|
|
|
|
fn child() {
|
|
log "4";
|
|
yield;
|
|
log "5";
|
|
yield;
|
|
log "6";
|
|
}
|
|
|