2017-12-10 14:29:24 -06:00
|
|
|
use self::A;
|
|
|
|
use self::B;
|
2017-05-17 22:29:58 -05:00
|
|
|
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
|
2014-12-06 19:51:58 -06:00
|
|
|
mod C {
|
2017-12-10 14:29:24 -06:00
|
|
|
use C::D;
|
2017-05-17 22:29:58 -05:00
|
|
|
mod D {} //~ ERROR the name `D` is defined multiple times
|
|
|
|
//~| `D` redefined here
|
2014-12-06 19:51:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|