diff options
author | Hirokazu Hata <[email protected]> | 2019-01-13 13:01:33 +0000 |
---|---|---|
committer | Hirokazu Hata <[email protected]> | 2019-01-13 13:23:06 +0000 |
commit | 139da0841d720fc75a3c449c37f9e198cd7dcda9 (patch) | |
tree | 936528f569f0a6c47ad2cb7114c60a21c904afd0 /crates/ra_hir/src/ty/tests.rs | |
parent | 6e73cc89b6f2e0086a3261489811f221ee7deaa8 (diff) |
Fix tuple test case
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 4031cd735..920188fc9 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -272,8 +272,15 @@ fn test(a: A) { | |||
272 | fn infer_tuple() { | 272 | fn infer_tuple() { |
273 | check_inference( | 273 | check_inference( |
274 | r#" | 274 | r#" |
275 | fn test() { | 275 | fn test(x: &str, y: isize) { |
276 | let a: (u32, &str) = (1, "a"); | 276 | let a: (u32, &str) = (1, "a"); |
277 | let b = (a, x); | ||
278 | let c = (y, x); | ||
279 | let d = (c, x); | ||
280 | |||
281 | // we have not infered these case yet. | ||
282 | let e = (1, "e"); | ||
283 | let f = (e, "d"); | ||
277 | } | 284 | } |
278 | "#, | 285 | "#, |
279 | "tuple.txt", | 286 | "tuple.txt", |