From d48d5b8b6ca59b462b3a84dad9868daff2eddb6d Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Thu, 17 Jan 2019 13:08:18 +0100 Subject: Add initial (flawed) implementation of binding annotations --- crates/ra_hir/src/ty/tests.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_hir/src/ty/tests.rs') 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) { } let lambda = |a: u64, b, c: i32| { a + b; c }; + + let ref ref_to_x = x; + let mut mut_x = x; + let ref mut mut_ref_to_x = x; } "#, "pattern.txt", -- cgit v1.2.3