This commit is contained in:
Niko Matsakis 2012-02-24 17:46:13 -08:00
parent 5ee89f3f2a
commit 274c9708f0

View File

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