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

12 lines
124 B
Rust
Raw Normal View History

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