2017-12-10 23:29:24 +03:00
|
|
|
use self::A;
|
|
|
|
|
use self::B;
|
2017-05-17 20:29:58 -07: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-07 07:21:58 +05:30
|
|
|
mod C {
|
2017-12-10 23:29:24 +03:00
|
|
|
use C::D;
|
2017-05-17 20:29:58 -07:00
|
|
|
mod D {} //~ ERROR the name `D` is defined multiple times
|
|
|
|
|
//~| `D` redefined here
|
2014-12-07 07:21:58 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|