aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-16 19:26:58 +0000
committerAleksey Kladov <[email protected]>2019-01-19 12:37:25 +0000
commit3340807bd24f398dca158e85eebae74012d8ef4b (patch)
treed0f94210a723ddbdcdfa9c64e66d59c68b52caca /crates/ra_hir/src/ty
parentab5deb78117693d776723bc0144e7b34e6f782d1 (diff)
Get basic struct pattern type inference working!
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r--crates/ra_hir/src/ty/tests/data/adt_pattern.txt23
1 files changed, 11 insertions, 12 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt
index d23b865a0..41e9c9d34 100644
--- a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt
+++ b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt
@@ -1,12 +1,11 @@
1[49; 192) '{ ... }; }': () 1[68; 155) '{ ...= e; }': ()
2[59; 60) 'e': E 2[78; 79) 'e': E
3[63; 76) 'E::A { x: 3 }': E 3[82; 95) 'E::A { x: 3 }': E
4[73; 74) '3': usize 4[92; 93) '3': usize
5[82; 124) 'if let... }': [unknown] 5[106; 113) 'S(y, z)': S
6[105; 106) 'e': E 6[108; 109) 'y': u32
7[107; 124) '{ ... }': [unknown] 7[111; 112) 'z': E
8[117; 118) 'x': [unknown] 8[116; 119) 'foo': S
9[130; 189) 'match ... }': [unknown] 9[129; 148) 'E::A {..._var }': E
10[136; 137) 'e': E 10[139; 146) 'new_var': usize
11[162; 163) 'x': [unknown] 11[151; 152) 'e': E
12[181; 182) '1': i32