You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I believe I found a bug in how labels are defined to a scope. The same text abcd defines two distinct labels, each inside an anonymous scope using { ... }.
This seems to be intentional, as indicated by tests for this situation in src/test/compile-fail/loops-reject-duplicate-labels-2.rs, but I think it would be nice if there was someone else to discuss this with.
Hello, I believe I found a bug in how labels are defined to a scope. The same text
abcd
defines two distinct labels, each inside an anonymous scope using{ ... }
.I tried this code:
(Playground)
Errors:
I expected to see this happen: code compiles
Instead, this happened: labels are identified as the same, but they actually have different scopes
Meta
This appears to happen on both nightly and stable.
The text was updated successfully, but these errors were encountered: