Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //main.rs
- mod two;
- mod one;
- use one::test;
- fn main() {
- test();
- }
- //one.rs
- use self::two::testtwo;
- pub fn test() {
- println!("test from one.rs!");
- testtwo();
- }
- //two.rs
- pub fn testtwo() {
- println!("testtwo from two.rs!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement