Skip to content

Commit 998e3c1

Browse files
authored
Fix typo in MRI "cannot move out of borrowed content"
1 parent ce2b8a4 commit 998e3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ fn do_mir_borrowck<'a, 'gcx, 'tcx>(infcx: &InferCtxt<'a, 'gcx, 'tcx>,
9090
IllegalMoveOriginKind::Static =>
9191
tcx.cannot_move_out_of(span, "static item", origin),
9292
IllegalMoveOriginKind::BorrowedContent =>
93-
tcx.cannot_move_out_of(span, "borrowed_content", origin),
93+
tcx.cannot_move_out_of(span, "borrowed content", origin),
9494
IllegalMoveOriginKind::InteriorOfTypeWithDestructor { container_ty: ty } =>
9595
tcx.cannot_move_out_of_interior_of_drop(span, ty, origin),
9696
IllegalMoveOriginKind::InteriorOfSliceOrArray { ty, is_index } =>

0 commit comments

Comments
 (0)