]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import7.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / imports / import7.rs
1 // run-pass
2 #![allow(unused_imports)]
3
4 use foo::zed;
5 use bar::baz;
6
7 mod foo {
8     pub mod zed {
9         pub fn baz() { println!("baz"); }
10     }
11 }
12 mod bar {
13     pub use foo::zed::baz;
14     pub mod foo {
15         pub mod zed {}
16     }
17 }
18 pub fn main() { baz(); }