diff --git a/src/librustc_borrowck/borrowck/mod.rs b/src/librustc_borrowck/borrowck/mod.rs index e8179a8cee0cc..ae2a5e1930c07 100644 --- a/src/librustc_borrowck/borrowck/mod.rs +++ b/src/librustc_borrowck/borrowck/mod.rs @@ -851,7 +851,7 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> { format!("cannot assign to {}", descr) } BorrowViolation(euv::ClosureCapture(_)) => { - format!("closure cannot assign to {}", descr) + format!("closure cannot borrow {}", descr) } BorrowViolation(euv::OverloadedOperator) | BorrowViolation(euv::AddrOf) |