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 {mod bar {// `bar` should only be visible inside `foo`pubstructS;}pubuseself::bar::S;}impl foo::S{fnf(){}pubfng(){}}fnmain(){
foo::bar::S::f();//< yet this line compiles// foo::bar::S::g(); //< this line would give the correct privacy error}