2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-08-06 05:48:42 -05:00
|
|
|
// Previously, this would have failed to resolve due to the circular
|
|
|
|
// block between `use say` and `pub use hello::*`.
|
|
|
|
//
|
|
|
|
// Now, as `use say` is not `pub`, the glob import can resolve
|
|
|
|
// without any problem and this resolves fine.
|
|
|
|
|
2015-08-05 14:56:49 -05:00
|
|
|
pub use hello::*;
|
|
|
|
|
|
|
|
pub mod say {
|
|
|
|
pub fn hello() { println!("hello"); }
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod hello {
|
|
|
|
use say;
|
|
|
|
|
|
|
|
pub fn hello() {
|
|
|
|
say::hello();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
hello();
|
|
|
|
}
|