rust/tests/ui/imports/import6.rs
2024-02-16 20:02:50 +00:00

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