Skip to content
Quiz · Modules, crates and tests · lesson 2 of 6

Quiz — a private function

What happens when this program is built and run?

Rust
mod garden {
    fn water() {
        println!("water");
    }
}

fn main() {
    println!("start");
    garden::water();
}