Consider desugaring the pattern in match to a let
to improve error messages
#14390
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Proposal: desugar the
Some
branch afor
loop toSome(value) => { let <pattern> = value; ...
, rather thanSome(<pattern>) => { ...
as we do now.Using the
let
version would give two advantages:for
loop (annoying for beginners if thefor
has a large body).The text was updated successfully, but these errors were encountered: