parent
5b7145a9f4
commit
118194381c
@ -4343,7 +4343,7 @@ fn trans_put(in_cx: &@block_ctxt, e: &option::t<@ast::expr>) -> result {
|
||||
llargs += [r.val];
|
||||
}
|
||||
}
|
||||
FastCall(bcx, llcallee, llargs);
|
||||
bcx = invoke_fastcall(bcx, llcallee, llargs).bcx;
|
||||
bcx = trans_block_cleanups(bcx, cx);
|
||||
let next_cx = new_sub_block_ctxt(in_cx, "next");
|
||||
Br(bcx, next_cx.llbb);
|
||||
|
12
src/test/run-fail/unwind-iter2.rs
Normal file
12
src/test/run-fail/unwind-iter2.rs
Normal file
@ -0,0 +1,12 @@
|
||||
// error-pattern:fail
|
||||
|
||||
iter x() -> int {
|
||||
let a = @0;
|
||||
put 1;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
for each x in x() {
|
||||
fail;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user