rust/src/test/run-fail/unwind-closure.rs

11 lines
118 B
Rust
Raw Normal View History

// error-pattern:fail
fn f(a: @int) {
fail;
}
fn main() {
2012-06-19 21:34:01 -05:00
let b = @0;
let g = {|move b|f(b)};
g();
}