Skip to content

Instantly share code, notes, and snippets.

@huonw
Forked from dovreshef/t1.rs
Last active December 20, 2015 15:39
Show Gist options
  • Save huonw/6155841 to your computer and use it in GitHub Desktop.
Save huonw/6155841 to your computer and use it in GitHub Desktop.
use t2::t3::fun;
mod t2;
fn main() {
t2::fun();
fun(); // calling t3::fun
}
pub mod t3; // `pub` so that main can import it in `t2::t3::fun`.
pub fn fun() {
t3::fun();
}
pub fn fun() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment