mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
17 lines
266 B
Rust
17 lines
266 B
Rust
mod foo {
|
|
pub fn f() {}
|
|
|
|
use foo as bar;
|
|
pub use self::f as bar;
|
|
}
|
|
|
|
mod bar {
|
|
use foo::bar::f as g; //~ ERROR module import `bar` is private
|
|
|
|
use foo as f;
|
|
pub use foo::*;
|
|
}
|
|
|
|
use bar::f::f; //~ ERROR module import `f` is private
|
|
fn main() {}
|