Skip to content

Commit 50bee08

Browse files
committed
---
yaml --- r: 5232 b: refs/heads/master c: d267e74 h: refs/heads/master v: v3
1 parent 54dff20 commit 50bee08

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0ea55ffdc87cd65de707d2d947cb57084be950f7
2+
refs/heads/master: d267e7486e7158f8633424389f789d23149e1064

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4520,6 +4520,7 @@ fn init_local(bcx: @block_ctxt, local: &@ast::local) -> result {
45204520
ast::expr_ret(_) { true }
45214521
ast::expr_break. { true }
45224522
ast::expr_cont. { true }
4523+
ast::expr_call(_, _) { true }
45234524
_ {
45244525
let ex_ty = ty::expr_ty(e.ccx.tcx, ex);
45254526
ty::type_is_bot(e.ccx.tcx, ex_ty)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// error-pattern:fail
2+
3+
fn f() -> @int { fail; }
4+
5+
fn main() {
6+
let a: @int = f();
7+
}

0 commit comments

Comments
 (0)