diff options
| author | Andrew Paseltiner <apaseltiner@gmail.com> | 2016-05-16 16:57:33 -0400 |
|---|---|---|
| committer | Andrew Paseltiner <apaseltiner@gmail.com> | 2016-05-16 16:57:33 -0400 |
| commit | f3c63d21c1af1da00bcf36e6e6490425ff3edbbc (patch) | |
| tree | fb85f3c46e80acdf73899b18f1ef5420596c35d6 | |
| parent | 8310de856db8ba78ba3f4c58e3fe6d3d87f2cb4f (diff) | |
| download | rust-f3c63d21c1af1da00bcf36e6e6490425ff3edbbc.tar.gz rust-f3c63d21c1af1da00bcf36e6e6490425ff3edbbc.zip | |
Add missing code fence to `diagnostics.rs`
Closes #33662
| -rw-r--r-- | src/librustc_borrowck/diagnostics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_borrowck/diagnostics.rs b/src/librustc_borrowck/diagnostics.rs index cdbad685008..b5d8192b4dd 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, |
