rust/src/test/run-pass/clone-with-exterior.rs

13 lines
227 B
Rust
Raw Normal View History

// xfail-stage0
// xfail-stage1
// xfail-stage2
2010-06-23 23:03:09 -05:00
fn f(@rec(int a, int b) x) {
assert (x.a == 10);
assert (x.b == 12);
2010-06-23 23:03:09 -05:00
}
fn main() {
let @rec(int a, int b) z = rec(a=10, b=12);
let task p = spawn thread f(z);
join p;
}