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
mod foo {pubmod bar {}// This defines bar in the type namespacepubuse alpha::bar;// This defines bar in the value namespace// This should define baz in both namespaces, but it only defines `baz` in the type namespace.pubuseself::bar as baz;pubfnbaz(){}// This should collide with the imported `baz`, but now it does not.}pubfnf(){}mod alpha {pubuseself::f as bar;// Changing this to `pub fn bar() {}` makes the imports consistentpubusesuper::*;}fnmain(){
foo::bar();
foo::baz();// This errors}