mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
19 lines
258 B
Rust
19 lines
258 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 mod foo {
|
|
pub mod zed {}
|
|
}
|
|
}
|
|
pub fn main() { baz(); }
|