blob: 5fe6742f55e03ce880a1691f4e2bb2879abe25b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use self::A;
use self::B;
mod A {} //~ ERROR the name `A` is defined multiple times
//~| `A` redefined here
pub mod B {} //~ ERROR the name `B` is defined multiple times
//~| `B` redefined here
mod C {
use C::D;
mod D {} //~ ERROR the name `D` is defined multiple times
//~| `D` redefined here
}
fn main() {}
|