rust/src/test/run-fail/unwind-iter.rs
2012-07-01 19:19:32 -07:00

11 lines
114 B
Rust

// error-pattern:fail
fn x(it: fn(int)) {
fail;
it(0);
}
fn main() {
let a = @0;
x(|_i| { } );
}