mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
17 lines
311 B
Rust
17 lines
311 B
Rust
use module_of_many_things::*;
|
|
|
|
mod module_of_many_things {
|
|
pub fn f1() { println!("f1"); }
|
|
pub fn f2() { println!("f2"); }
|
|
fn f3() { println!("f3"); }
|
|
pub fn f4() { println!("f4"); }
|
|
}
|
|
|
|
|
|
fn main() {
|
|
f1();
|
|
f2();
|
|
f999(); //~ ERROR cannot find function `f999` in this scope
|
|
f4();
|
|
}
|