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

17 lines
216 B
Rust
Raw Normal View History

// xfail-win32
use std;
import std::task;
import std::comm;
resource complainer(c: @int) {
}
2011-10-20 22:34:04 -05:00
fn f(&&_i: ()) {
task::unsupervise();
let c <- complainer(@0);
fail;
}
fn main() {
task::spawn((), f);
}