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
Also tested on Nightly version: 1.71.0-nightly (2023-05-07 c4190f2d3a46a59f435f) via the playground.
If RFC 116 has been superseded or withdrawn, I'm sorry — after some digging, I wasn't able to find any information to that effect, but perhaps I wasn't looking in the right places.
The text was updated successfully, but these errors were encountered:
Out of curiosity, was there a place I could have found this out on my own without asking here first? Wondering if the underlying issue is "I didn't look hard enough, do better next time" or "superseded RFCs aren't marked as such, open an issue on rust-lang/rfcs".
I tried this code:
playground
I expected to see this happen: compilation error, since RFC 116 seems to explicitly prohibit shadowing modules.
Instead, this happened: compiles successfully and the
collide
module is shadowed, playground.Related to #111336 which looks at other glob shadowing problems.
Meta
rustc --version --verbose
:Also tested on
Nightly version: 1.71.0-nightly (2023-05-07 c4190f2d3a46a59f435f)
via the playground.If RFC 116 has been superseded or withdrawn, I'm sorry — after some digging, I wasn't able to find any information to that effect, but perhaps I wasn't looking in the right places.
The text was updated successfully, but these errors were encountered: