Created
October 14, 2014 15:08
-
-
Save Fiona-J-W/0840b55e6925b7d36f66 to your computer and use it in GitHub Desktop.
Nonworking Rust
This file contains hidden or 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
mod tu1; | |
fn main() { | |
println!("Hello World"); | |
tu1::fun1(); | |
} |
This file contains hidden or 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
mod tu2; | |
pub fn fun1() { | |
println!("fun1()"); | |
::tu2::fun2(); | |
} |
This file contains hidden or 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 fun2() { | |
println!("fun2()"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like Rust is trying to enforce a certain directory structure to your modules. Does http://thread.gmane.org/gmane.comp.lang.rust.devel/10032 help?