mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
211 B
Rust
15 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(); }
|