Infer result of struct literals, and recurse into their child expressions

This commit is contained in:
Florian Diebold
2018-12-24 21:00:14 +01:00
parent 4ff1618520
commit 6fcd38cc81
6 changed files with 143 additions and 49 deletions

View File

@@ -82,7 +82,7 @@ struct C(usize);
fn test() {
let c = C(1);
B;
let a: A = A { b: B, c: C() };
let a: A = A { b: B, c: C(1) };
a.b;
a.c;
}