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

10 lines
110 B
Rust

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