rust/tests/ui/imports/issue-19498.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
322 B
Rust
Raw Normal View History

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
2014-12-07 01:51:58 +00:00
mod C {
use C::D;
mod D {} //~ ERROR the name `D` is defined multiple times
//~| `D` redefined here
2014-12-07 01:51:58 +00:00
}
fn main() {}