Can’t understand Rust module system
Short answer: you don’t need the mod phone in phone.rs. Just remove that and your code will work (assuming the rest of the code is correct). Longer answer: The following code in main.rs: pub mod phone; is equivalent to: pub mod phone { // literally insert the contents of phone.rs here } so you don’t … Read more