Incorrect "label name shadows a name already in scope" warning #89192
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=88ae8b7f1d4eb4b2fb318e957cd3695d
The current output is:
I don't think this warning should be emitted, since as far as I understand there's no valid way that one match arm's
'outer
label could be used from the other match arm. So I don't think there is shadowing taking place here, but rather defining two entirely separate labels in two entirely separate scopes.The text was updated successfully, but these errors were encountered: