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
Thanks for the report! I'm uncertain, but it seems to me like this is documented in the glob imports section. It says that named imports will shadow conflicting names from a glob import. Does that cover what you are thinking?
i guess, but the phrasing is pretty confusing. specifically, the usage of "are allowed to" instead of "always will". the example also doesn't make it clear that order doesn't matter.
mod a {
pub fn b() { print!("1") }
}
mod c {
pub fn b() {
print!("2")
}
}
pub use c::b;
pub use a::*;
fn main() {
b(); // this prints "2"!
}
The text was updated successfully, but these errors were encountered: