From f3c63d21c1af1da00bcf36e6e6490425ff3edbbc Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Mon, 16 May 2016 16:57:33 -0400 Subject: [PATCH] Add missing code fence to `diagnostics.rs` Closes #33662 --- src/librustc_borrowck/diagnostics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_borrowck/diagnostics.rs b/src/librustc_borrowck/diagnostics.rs index cdbad685008f2..b5d8192b4dd2c 100644 --- a/src/librustc_borrowck/diagnostics.rs +++ b/src/librustc_borrowck/diagnostics.rs @@ -391,6 +391,7 @@ fn you_know_nothing(jon_snow: &mut i32) { // but it is already borrowed }; } +``` In here, `jon_snow` is already borrowed by the `nights_watch` closure, so it cannot be borrowed by the `starks` closure at the same time. To fix this issue,