rust/src/test/run-pass/unwind-resource2.rs
2011-10-20 18:23:47 -07:00

17 lines
217 B
Rust

// xfail-win32
use std;
import std::task;
import std::comm;
resource complainer(c: @int) {
}
fn# f(&&_i: ()) {
task::unsupervise();
let c <- complainer(@0);
fail;
}
fn main() {
task::spawn((), f);
}