]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-4865-1.rs
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / ui / imports / issue-4865-1.rs
1 // run-pass
2 #![allow(unused_imports)]
3 // This should resolve fine.
4 // Prior to fix, the crossed imports between a and b
5 // would block on the glob import, itself never being resolved
6 // because these previous imports were not resolved.
7
8 pub mod a {
9     use b::fn_b;
10     use c::*;
11
12     pub fn fn_a(){
13     }
14 }
15
16 pub mod b {
17     use a::fn_a;
18     use c::*;
19
20     pub fn fn_b(){
21     }
22 }
23
24 pub mod c{
25     pub fn fn_c(){
26     }
27 }
28
29 use a::fn_a;
30 use b::fn_b;
31
32 fn main() {
33 }