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
Should the use item just be illegal if it collides with an existing name? This issue confused me for quite a while with the rust-sdl package's sdl crate that contains an sdl mod.
The text was updated successfully, but these errors were encountered:
This is an "expected no-shadowing, got shadowing" case. it now rejects at parse level because the use things must come first. (This is actually the case that rule was introduced to handle).
The
use foo::foo;
line seems to do nothing at all, the reference tofoo
insidemain
still seems to resolve to the outerfoo
.Should the
use
item just be illegal if it collides with an existing name? This issue confused me for quite a while with therust-sdl
package'ssdl
crate that contains ansdl
mod.The text was updated successfully, but these errors were encountered: