diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index dfc83bb17..e817a8da9 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -377,6 +377,10 @@ fn test(x: &i32) { | |||
377 | } | 377 | } |
378 | 378 | ||
379 | let lambda = |a: u64, b, c: i32| { a + b; c }; | 379 | let lambda = |a: u64, b, c: i32| { a + b; c }; |
380 | |||
381 | let ref ref_to_x = x; | ||
382 | let mut mut_x = x; | ||
383 | let ref mut mut_ref_to_x = x; | ||
380 | } | 384 | } |
381 | "#, | 385 | "#, |
382 | "pattern.txt", | 386 | "pattern.txt", |