]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/issue-19498.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / imports / issue-19498.rs
1 use self::A;
2 use self::B;
3 mod A {} //~ ERROR the name `A` is defined multiple times
4 //~| `A` redefined here
5 pub mod B {} //~ ERROR the name `B` is defined multiple times
6 //~| `B` redefined here
7 mod C {
8     use C::D;
9     mod D {} //~ ERROR the name `D` is defined multiple times
10     //~| `D` redefined here
11 }
12
13 fn main() {}