about summary refs log tree commit diff
path: root/tests/ui/imports/issue-19498.rs
blob: ae4e5fd35e5bbf13f6f88616006a08f99c78d54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ dont-require-annotations: NOTE

use self::A;
use self::B;
mod A {} //~ ERROR the name `A` is defined multiple times
//~| NOTE `A` redefined here
pub mod B {} //~ ERROR the name `B` is defined multiple times
//~| NOTE `B` redefined here
mod C {
    use crate::C::D;
    mod D {} //~ ERROR the name `D` is defined multiple times
    //~| NOTE `D` redefined here
}

fn main() {}