]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
e9174d1e SL |
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. | |
85aaf69f | 7 | |
e9174d1e | 8 | pub use hello::*; |
223e47cc | 9 | |
e9174d1e SL |
10 | pub mod say { |
11 | pub fn hello() { println!("hello"); } | |
12 | } | |
62682a34 | 13 | |
e9174d1e SL |
14 | pub mod hello { |
15 | use say; | |
62682a34 | 16 | |
e9174d1e SL |
17 | pub fn hello() { |
18 | say::hello(); | |
19 | } | |
62682a34 SL |
20 | } |
21 | ||
22 | fn main() { | |
e9174d1e | 23 | hello(); |
62682a34 | 24 | } |