rust/src/test/ui/imports/import7.rs
2019-07-27 18:56:16 +03:00

19 lines
257 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(); }