aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-21 21:52:35 +0000
committerFlorian Diebold <[email protected]>2019-01-21 21:52:35 +0000
commita2521106163d3aaeeecfb28cae42d6aba99bba3f (patch)
tree4ade9a3c88710600ca4375ea5f1790e6a23eabc4 /crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
parent0d2cb60f93c5e73c0171e83fef36b696cc5dd4ff (diff)
Use insta for ty tests
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap')
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap52
1 files changed, 52 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
new file mode 100644
index 000000000..b22b71765
--- /dev/null
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_pattern.snap
@@ -0,0 +1,52 @@
1Created: 2019-01-21T21:48:20.677661229+00:00
2Creator: [email protected]
3Source: crates/ra_hir/src/ty/tests.rs
4
5[9; 10) 'x': &i32
6[18; 369) '{ ...o_x; }': ()
7[28; 29) 'y': &i32
8[32; 33) 'x': &i32
9[43; 45) '&z': &i32
10[44; 45) 'z': i32
11[48; 49) 'x': &i32
12[59; 60) 'a': i32
13[63; 64) 'z': i32
14[74; 80) '(c, d)': (i32, &str)
15[75; 76) 'c': i32
16[78; 79) 'd': &str
17[83; 95) '(1, "hello")': (i32, &str)
18[84; 85) '1': i32
19[87; 94) '"hello"': &str
20[102; 152) 'for (e... }': ()
21[106; 112) '(e, f)': ([unknown], [unknown])
22[107; 108) 'e': [unknown]
23[110; 111) 'f': [unknown]
24[116; 125) 'some_iter': [unknown]
25[126; 152) '{ ... }': ()
26[140; 141) 'g': [unknown]
27[144; 145) 'e': [unknown]
28[158; 205) 'if let... }': ()
29[165; 170) '[val]': [unknown]
30[173; 176) 'opt': [unknown]
31[177; 205) '{ ... }': ()
32[191; 192) 'h': [unknown]
33[195; 198) 'val': [unknown]
34[215; 221) 'lambda': [unknown]
35[224; 256) '|a: u6...b; c }': [unknown]
36[225; 226) 'a': u64
37[233; 234) 'b': u64
38[236; 237) 'c': i32
39[244; 256) '{ a + b; c }': i32
40[246; 247) 'a': u64
41[246; 251) 'a + b': u64
42[250; 251) 'b': u64
43[253; 254) 'c': i32
44[267; 279) 'ref ref_to_x': &&i32
45[282; 283) 'x': &i32
46[293; 302) 'mut mut_x': &i32
47[305; 306) 'x': &i32
48[316; 336) 'ref mu...f_to_x': &mut &i32
49[339; 340) 'x': &i32
50[350; 351) 'k': &mut &i32
51[354; 366) 'mut_ref_to_x': &mut &i32
52