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

11 lines
114 B
Rust
Raw Normal View History

// error-pattern:fail
2012-01-23 14:59:00 -08:00
fn x(it: fn(int)) {
fail;
it(0);
}
fn main() {
let a = @0;
2012-06-30 16:19:07 -07:00
x(|_i| { } );
}