rust/src/test/run-fail/unwind-closure.rs
2012-06-20 17:27:28 -07:00

11 lines
118 B
Rust

// error-pattern:fail
fn f(a: @int) {
fail;
}
fn main() {
let b = @0;
let g = {|move b|f(b)};
g();
}