diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-08-14 21:48:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 21:48:48 +0200 |
| commit | 069892180bbd63d8a649142e2ea16439a57a90d8 (patch) | |
| tree | 7660a92da6ecd02dc1a2f0756ec11c69d7b1d610 /compiler | |
| parent | 603ee15f7cf0bc7631ba0c845528aa598422f1fa (diff) | |
| parent | 65d329d189651f5f4612e87132ca6c041cf61ab4 (diff) | |
| download | rust-069892180bbd63d8a649142e2ea16439a57a90d8.tar.gz rust-069892180bbd63d8a649142e2ea16439a57a90d8.zip | |
Rollup merge of #145403 - shepmaster:grammar, r=estebank
Adjust error message grammar to be less awkward r? ``@estebank``
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_borrowck/src/diagnostics/move_errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/diagnostics/move_errors.rs b/compiler/rustc_borrowck/src/diagnostics/move_errors.rs index af71db69483..0b3151fd8b8 100644 --- a/compiler/rustc_borrowck/src/diagnostics/move_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/move_errors.rs @@ -518,7 +518,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> { .with_span_help( self.get_closure_bound_clause_span(*def_id), "`Fn` and `FnMut` closures require captured values to be able to be \ - consumed multiple times, but an `FnOnce` consume them only once", + consumed multiple times, but `FnOnce` closures may consume them only once", ) } _ => { |
