rust/src/test/run-pass/cleanup-copy-mode.rs
2012-06-22 18:26:25 -07:00

10 lines
194 B
Rust

// xfail-win32
fn adder(+x: @int, +y: @int) -> int { ret *x + *y; }
fn failer() -> @int { fail; }
fn main() {
assert(result::is_err(task::try {||
adder(@2, failer()); ()
}));
}