aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/snapshots
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-02-16 19:29:36 +0000
committerFlorian Diebold <[email protected]>2019-02-16 22:06:41 +0000
commitccfc6b11c1e55e28e42bb79414d8349e8eb36086 (patch)
treeae5fb44e1c9de2aec7a1413e256399350c3d8923 /crates/ra_hir/src/ty/snapshots
parentedd4c1d8a6c270fe39ae881c23c722c658c87c32 (diff)
Add a test for impl generics
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots')
-rw-r--r--crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap39
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap
new file mode 100644
index 000000000..99df39fc2
--- /dev/null
+++ b/crates/ra_hir/src/ty/snapshots/tests__infer_impl_generics.snap
@@ -0,0 +1,39 @@
1---
2created: "2019-02-16T19:27:11.573533475Z"
3creator: [email protected]
4source: crates/ra_hir/src/ty/tests.rs
5expression: "&result"
6---
7[74; 78) 'self': A<[unknown], [unknown]>
8[85; 107) '{ ... }': [unknown]
9[95; 99) 'self': A<[unknown], [unknown]>
10[95; 101) 'self.x': [unknown]
11[117; 121) 'self': A<[unknown], [unknown]>
12[128; 150) '{ ... }': [unknown]
13[138; 142) 'self': A<[unknown], [unknown]>
14[138; 144) 'self.y': [unknown]
15[163; 167) 'self': A<[unknown], [unknown]>
16[169; 170) 't': T
17[188; 223) '{ ... }': ([unknown], [unknown], T)
18[198; 217) '(self.....y, t)': ([unknown], [unknown], T)
19[199; 203) 'self': A<[unknown], [unknown]>
20[199; 205) 'self.x': [unknown]
21[207; 211) 'self': A<[unknown], [unknown]>
22[207; 213) 'self.y': [unknown]
23[215; 216) 't': T
24[245; 342) '{ ...(1); }': ()
25[255; 256) 'a': A<u64, i64>
26[259; 281) 'A { x:...1i64 }': A<u64, i64>
27[266; 270) '1u64': u64
28[275; 279) '1i64': i64
29[287; 288) 'a': A<u64, i64>
30[287; 292) 'a.x()': [unknown]
31[298; 299) 'a': A<u64, i64>
32[298; 303) 'a.y()': [unknown]
33[309; 310) 'a': A<u64, i64>
34[309; 319) 'a.z(1i128)': ([unknown], [unknown], i128)
35[313; 318) '1i128': i128
36[325; 326) 'a': A<u64, i64>
37[325; 339) 'a.z::<u128>(1)': ([unknown], [unknown], i32)
38[337; 338) '1': i32
39