diff options
author | Florian Diebold <[email protected]> | 2018-12-24 20:00:14 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2018-12-25 14:16:42 +0000 |
commit | 6fcd38cc81bdcc9921da767872dfce65ee7d2d27 (patch) | |
tree | 5d5ae0f57cc25d0bf8b0613a5e05de1f773b42ef /crates/ra_hir/src/ty/tests.rs | |
parent | 4ff161852016c6c15954d6f30bd637834a2b2b68 (diff) |
Infer result of struct literals, and recurse into their child expressions
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 170eef147..9bb58ec85 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -82,7 +82,7 @@ struct C(usize); | |||
82 | fn test() { | 82 | fn test() { |
83 | let c = C(1); | 83 | let c = C(1); |
84 | B; | 84 | B; |
85 | let a: A = A { b: B, c: C() }; | 85 | let a: A = A { b: B, c: C(1) }; |
86 | a.b; | 86 | a.b; |
87 | a.c; | 87 | a.c; |
88 | } | 88 | } |