We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc3423c + 5227102 commit 77a824cCopy full SHA for 77a824c
crates/ra_hir/src/ty/snapshots/tests__infer_self.snap
@@ -1,13 +1,17 @@
1
---
2
-created: "2019-01-22T14:45:00.052694700+00:00"
3
-creator: insta@0.4.0
+created: "2019-02-04T19:40:48.826936500+00:00"
+creator: insta@0.5.3
4
expression: "&result"
5
-source: "crates\\ra_hir\\src\\ty\\tests.rs"
+source: crates/ra_hir/src/ty/tests.rs
6
7
[34; 38) 'self': &S
8
[40; 61) '{ ... }': ()
9
[50; 54) 'self': &S
10
[75; 79) 'self': &S
11
[88; 109) '{ ... }': ()
12
[98; 102) 'self': &S
13
+[133; 153) '{ ... }': S
14
+[143; 147) 'S {}': S
15
+[177; 200) '{ ... }': S
16
+[187; 194) 'Self {}': S
17
crates/ra_hir/src/ty/tests.rs
@@ -215,6 +215,12 @@ impl S {
215
fn test2(self: &Self) {
216
self;
217
}
218
+ fn test3() -> Self {
219
+ S {}
220
+ }
221
+ fn test4() -> Self {
222
+ Self {}
223
224
225
"#,
226
);
0 commit comments