2015-12-01 23:06:34 +00:00
|
|
|
mod foo {
|
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
2025-06-05 08:41:49 +02:00
|
|
|
use crate::foo as bar;
|
2015-12-01 23:06:34 +00:00
|
|
|
pub use self::f as bar;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mod bar {
|
2025-06-05 08:41:49 +02:00
|
|
|
use crate::foo::bar::f as g; //~ ERROR module import `bar` is private
|
2015-12-18 10:10:31 +00:00
|
|
|
|
2025-06-05 08:41:49 +02:00
|
|
|
use crate::foo as f;
|
|
|
|
|
pub use crate::foo::*;
|
2015-12-01 23:06:34 +00:00
|
|
|
}
|
|
|
|
|
|
2020-01-12 16:20:57 +03:00
|
|
|
use bar::f::f; //~ ERROR module import `f` is private
|
2015-12-01 23:06:34 +00:00
|
|
|
fn main() {}
|