PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://github.com/jruderman/rust
Rust | 15 lines | 11 code | 3 blank | 1 comment | 2 complexity | 2396f83c0a6a574941b7108d7ef42055 MD5 | raw file
 1//xfail-test
 2
 3use std;
 4import task;
 5
 6fn f(x : @{a:int, b:int}) {
 7    assert (x.a == 10);
 8    assert (x.b == 12);
 9}
10
11fn main() {
12    let z : @{a:int, b:int} = @{ a : 10, b : 12};
13    let p = task::_spawn(bind f(z));
14    task::join_id(p);
15}