Fix remaining uses of CaptureBy::Value
This commit is contained in:
parent
8de489918b
commit
241a654c07
5 changed files with 9 additions and 9 deletions
|
@ -2938,7 +2938,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
|
|||
else {
|
||||
bug!("expected closure in SizedClosureCapture obligation");
|
||||
};
|
||||
if let hir::CaptureBy::Value = closure.capture_clause
|
||||
if let hir::CaptureBy::Value { .. } = closure.capture_clause
|
||||
&& let Some(span) = closure.fn_arg_span
|
||||
{
|
||||
err.span_label(span, "this closure captures all values by move");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue