mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 11:26:42 +00:00
22 lines
288 B
Rust
22 lines
288 B
Rust
//@ compile-flags: -C codegen-units=3 --crate-type=rlib,dylib -g
|
|
|
|
pub mod a {
|
|
pub fn one() -> usize {
|
|
1
|
|
}
|
|
}
|
|
|
|
pub mod b {
|
|
pub fn two() -> usize {
|
|
2
|
|
}
|
|
}
|
|
|
|
pub mod c {
|
|
use a::one;
|
|
use b::two;
|
|
pub fn three() -> usize {
|
|
one() + two()
|
|
}
|
|
}
|