Why would rust use both mod and use?

The use line in your example is optional:

pub mod module_d;

pub fn echo_module_c() {
    module_d::echo_module_d();
}
3 Likes