aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/complex-path1.rs
blob: 54011bd697626769f4943eb69ff52edee2e0e5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-additional-options "-w" }
mod a {
    pub fn foo() {}
}

mod b {
    pub fn foo() {
        super::a::foo();
    }
}

mod foo {
    pub struct bar(pub i32);
}

fn test() -> crate::foo::bar {
    foo::bar(123)
}