2015-12-01 17:06:34 -06:00
|
|
|
mod foo {
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
|
|
use foo as bar;
|
|
|
|
pub use self::f as bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod bar {
|
2016-10-13 03:05:03 -05:00
|
|
|
use foo::bar::f as g; //~ ERROR module `bar` is private
|
2015-12-18 04:10:31 -06:00
|
|
|
|
|
|
|
use foo as f;
|
|
|
|
pub use foo::*;
|
2015-12-01 17:06:34 -06:00
|
|
|
}
|
|
|
|
|
2016-10-13 03:05:03 -05:00
|
|
|
use bar::f::f; //~ ERROR module `f` is private
|
2015-12-01 17:06:34 -06:00
|
|
|
fn main() {}
|