rust/src/test/run-pass/unwind-resource2.rs
2012-04-05 14:09:32 -07:00

18 lines
250 B
Rust

// xfail-win32
use std;
import task;
import comm;
resource complainer(c: @int) {
}
fn f() {
let c <- complainer(@0);
fail;
}
fn main() {
let builder = task::builder();
task::unsupervise(builder);
task::run(builder) {|| f(); }
}