aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests
diff options
context:
space:
mode:
authorMarcus Klaas de Vries <[email protected]>2019-01-16 16:47:59 +0000
committerAleksey Kladov <[email protected]>2019-01-19 12:37:25 +0000
commit9c2d83a4c809b0b11ca389bb454e197859e5116c (patch)
tree36fd28ab25e05276559d5a1086e63cb58aae8673 /crates/ra_hir/src/ty/tests
parent3b0de53904e560f85ccfdc38e66e6d6c9e997b7a (diff)
Add crude implementation of tuplestruct pattern inference
Diffstat (limited to 'crates/ra_hir/src/ty/tests')
-rw-r--r--crates/ra_hir/src/ty/tests/data/adt_pattern.txt12
1 files changed, 12 insertions, 0 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
new file mode 100644
index 000000000..d23b865a0
--- /dev/null
+++ b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt
@@ -0,0 +1,12 @@
1[49; 192) '{ ... }; }': ()
2[59; 60) 'e': E
3[63; 76) 'E::A { x: 3 }': E
4[73; 74) '3': usize
5[82; 124) 'if let... }': [unknown]
6[105; 106) 'e': E
7[107; 124) '{ ... }': [unknown]
8[117; 118) 'x': [unknown]
9[130; 189) 'match ... }': [unknown]
10[136; 137) 'e': E
11[162; 163) 'x': [unknown]
12[181; 182) '1': i32