aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
authorkjeremy <[email protected]>2019-02-04 19:44:06 +0000
committerkjeremy <[email protected]>2019-02-04 19:44:06 +0000
commit5227102c129fd6efe73a143e3dab25a6d267f3df (patch)
tree8219072254d22478f9c31acaa361a0b6687607e1 /crates/ra_hir/src/ty/tests.rs
parent88702a758f031f33452e9acac621841552ec9f8a (diff)
Test more Self inference
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index cb8d6351d..30da8fc23 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -215,6 +215,12 @@ impl S {
215 fn test2(self: &Self) { 215 fn test2(self: &Self) {
216 self; 216 self;
217 } 217 }
218 fn test3() -> Self {
219 S {}
220 }
221 fn test4() -> Self {
222 Self {}
223 }
218} 224}
219"#, 225"#,
220 ); 226 );