plik importu rdzy

// in main.rs
mod hello;

fn main() {
    hello::print_hello();
}

// in hello.rs
pub fn print_hello() {
    println!("Hello, world!");
}
Fabrice Hategekimana