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 {
|
2020-01-12 07:20:57 -06:00
|
|
|
use foo::bar::f as g; //~ ERROR module import `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
|
|
|
}
|
|
|
|
|
2020-01-12 07:20:57 -06:00
|
|
|
use bar::f::f; //~ ERROR module import `f` is private
|
2015-12-01 17:06:34 -06:00
|
|
|
fn main() {}
|