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.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs
index 09c8644f7..dd574162a 100644
--- a/crates/ra_hir/src/ty/tests.rs
+++ b/crates/ra_hir/src/ty/tests.rs
@@ -343,14 +343,17 @@ fn test(x: &str, y: isize) {
343 let b = [a, a]; 343 let b = [a, a];
344 let c = [b, b]; 344 let c = [b, b];
345 345
346 let d = [y]; 346 let d = [y, 1, 2, 3]
347 let e = [d, d]; 347 let d = [1, y, 2, 3]
348 let f = [e, e]; 348 let e = [y];
349 let f = [d, d];
350 let g = [e, e];
351
352 let h = [1, 2];
353 let i = ["a", "b"];
349 354
350 // we have not infered these case yet.
351 let g = [1, 2];
352 let h = ["a", "b"];
353 let b = [a, ["b"]]; 355 let b = [a, ["b"]];
356 let x: [u8; 0] = [];
354} 357}
355"#, 358"#,
356 "array.txt", 359 "array.txt",