1
Fork 0

Do not suggest borrowing binding in pattern in let else

Fix #104838.
This commit is contained in:
Esteban Küber 2022-12-08 09:31:57 -08:00
parent e46416eed6
commit 4f7c257fd8
4 changed files with 15 additions and 14 deletions

View file

@ -231,7 +231,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
remainder_span,
pattern,
None,
Some((None, initializer_span)),
Some((Some(&destination), initializer_span)),
);
this.visit_primary_bindings(
pattern,