diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 10842f967..dfc83bb17 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -367,6 +367,16 @@ fn test(x: &i32) { | |||
367 | let &z = x; | 367 | let &z = x; |
368 | let a = z; | 368 | let a = z; |
369 | let (c, d) = (1, "hello"); | 369 | let (c, d) = (1, "hello"); |
370 | |||
371 | for (e, f) in some_iter { | ||
372 | let g = e; | ||
373 | } | ||
374 | |||
375 | if let [val] = opt { | ||
376 | let h = val; | ||
377 | } | ||
378 | |||
379 | let lambda = |a: u64, b, c: i32| { a + b; c }; | ||
370 | } | 380 | } |
371 | "#, | 381 | "#, |
372 | "pattern.txt", | 382 | "pattern.txt", |