-
-
Save huonw/6155841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use t2::t3::fun; | |
mod t2; | |
fn main() { | |
t2::fun(); | |
fun(); // calling t3::fun | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub mod t3; // `pub` so that main can import it in `t2::t3::fun`. | |
pub fn fun() { | |
t3::fun(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub fn fun() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment