mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 09:36:40 +00:00
16 lines
211 B
Rust
16 lines
211 B
Rust
//@ run-pass
|
|
#![allow(unused_imports)]
|
|
|
|
use foo::zed;
|
|
use bar::baz;
|
|
|
|
mod foo {
|
|
pub mod zed {
|
|
pub fn baz() { println!("baz"); }
|
|
}
|
|
}
|
|
mod bar {
|
|
pub use foo::zed::baz;
|
|
}
|
|
pub fn main() { baz(); }
|