Avoid unifying vars when possible; handle bot (more) correctly

This commit is contained in:
Niko Matsakis 2012-03-24 21:24:47 -07:00
parent ee5d0f5e3f
commit bf9d714d46
8 changed files with 116 additions and 32 deletions

View file

@ -35,9 +35,9 @@ fn ret_guard() {
}
}
fn rec_ret() { let _r = {c: ret}; }
fn rec_ret() { let _r: {c: int} = {c: ret}; }
fn vec_ret() { let _v = [1, 2, ret, 4]; }
fn vec_ret() { let _v: [int] = [1, 2, ret, 4]; }
fn fail_then_concat() {
let mut x = [], y = [3];