aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r--crates/ra_hir/src/ty/tests.rs9
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) {
272fn infer_tuple() { 272fn infer_tuple() {
273 check_inference( 273 check_inference(
274 r#" 274 r#"
275fn test() { 275fn 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",