rust/tests/ui/warnings/no-explicit-path-issue-122509.rs

24 lines
313 B
Rust

//@ 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();
}