]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-4865-2.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-4865-2.rs
CommitLineData
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 8pub use hello::*;
223e47cc 9
e9174d1e
SL
10pub mod say {
11 pub fn hello() { println!("hello"); }
12}
62682a34 13
e9174d1e
SL
14pub mod hello {
15 use say;
62682a34 16
e9174d1e
SL
17 pub fn hello() {
18 say::hello();
19 }
62682a34
SL
20}
21
22fn main() {
e9174d1e 23 hello();
62682a34 24}