rust/src/test/run-fail/unwind-box-fn-unique.rs
2012-03-29 16:43:18 -07:00

14 lines
163 B
Rust

// error-pattern:fail
fn failfn() {
fail;
}
fn main() {
let y = ~0;
let x = @fn~() {
log(error, y);
};
failfn();
log(error, x);
}