Look at move place's type when suggesting mutable reborrow
This commit is contained in:
parent
a2cdcb3fea
commit
7e226e6d3f
5 changed files with 56 additions and 6 deletions
|
@ -401,7 +401,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
|
|||
};
|
||||
if let Some(use_spans) = use_spans {
|
||||
self.explain_captures(
|
||||
&mut err, span, span, use_spans, move_place, None, "", "", "", false, true,
|
||||
&mut err, span, span, use_spans, move_place, "", "", "", false, true,
|
||||
);
|
||||
}
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue