]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/issue-18083.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / imports / issue-18083.rs
1 // check-pass
2 #![allow(dead_code)]
3 #![allow(unused_imports)]
4 // These crossed imports should resolve fine, and not block on
5 // each other and be reported as unresolved.
6
7 mod a {
8     use b::{B};
9     pub use self::inner::A;
10
11     mod inner {
12         pub struct A;
13     }
14 }
15
16 mod b {
17     use a::{A};
18     pub use self::inner::B;
19
20     mod inner {
21         pub struct B;
22     }
23 }
24
25 fn main() {}