rust/src/test/run-pass/unwind-resource2.rs

18 lines
250 B
Rust
Raw Normal View History

// xfail-win32
use std;
import task;
import comm;
resource complainer(c: @int) {
}
2012-01-04 23:14:53 -06:00
fn f() {
let c <- complainer(@0);
fail;
}
fn main() {
let builder = task::builder();
2012-02-18 18:34:42 -06:00
task::unsupervise(builder);
task::run(builder) {|| f(); }
}