Label-shadowing warning incorrectly calls a label 'lifetime' #79610
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When compiling the following code:
rust emits the following warning:
I tried nightly in the playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=eda5af652ad2b13204432834e1b67f8e and got the same output
lifetime 'a already in scope
seems wrong, since'a
is not a lifetime, but a labelThe text was updated successfully, but these errors were encountered: