rustlings/exercises/modules/modules1.rs
2021-05-21 16:41:05 +08:00

14 lines
228 B
Rust

// modules1.rs
// Make me compile! Execute `rustlings hint modules1` for hints :)
pub mod sausage_factory {
pub fn make_sausage() {
println!("sausage!");
}
}
fn main() {
sausage_factory::make_sausage();
}