blob: 070aeaf146700f3153b20b57077ddd6bb468c5a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
mod foo {
pub fn f() {}
use crate::foo as bar;
pub use self::f as bar;
}
mod bar {
use crate::foo::bar::f as g; //~ ERROR module import `bar` is private
use crate::foo as f;
pub use crate::foo::*;
}
use bar::f::f; //~ ERROR module import `f` is private
fn main() {}
|