]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-4865-2.rs
Use `summary_opts()` in another spot
[rust.git] / src / test / ui / issues / issue-4865-2.rs
1 // run-pass
2 // Previously, this would have failed to resolve due to the circular
3 // block between `use say` and `pub use hello::*`.
4 //
5 // Now, as `use say` is not `pub`, the glob import can resolve
6 // without any problem and this resolves fine.
7
8 pub use hello::*;
9
10 pub mod say {
11     pub fn hello() { println!("hello"); }
12 }
13
14 pub mod hello {
15     use say;
16
17     pub fn hello() {
18         say::hello();
19     }
20 }
21
22 fn main() {
23     hello();
24 }