mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
16 lines
218 B
Rust
16 lines
218 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 crate::foo::zed::baz;
|
|
}
|
|
pub fn main() { baz(); }
|