rust/src/test/run-fail/unwind-iter.rs
2011-10-21 13:34:35 +02:00

11 lines
113 B
Rust

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