about summary refs log tree commit diff
path: root/tests/ui/warnings/no-explicit-path-issue-122509.rs
blob: 5be4b174076dbb654740961aef2289cf574c9f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//@ build-pass
//@ compile-flags: -C codegen-units=2 --emit asm

fn one() -> usize {
    1
}

pub mod a {
    pub fn two() -> usize {
        crate::one() + crate::one()
    }
}

pub mod b {
    pub fn three() -> usize {
        crate::one() + crate::a::two()
    }
}

fn main() {
    a::two();
    b::three();
}