rust/src/test/run-fail/unwind-iter2.rs
Brian Anderson 118194381c Invoke put functions
Issue #236
2011-09-11 17:31:40 -07:00

12 lines
128 B
Rust

// error-pattern:fail
iter x() -> int {
let a = @0;
put 1;
}
fn main() {
for each x in x() {
fail;
}
}