rust/src/test/run-pass/inner-module.rs
2018-12-25 21:08:33 -07:00

9 lines
201 B
Rust

mod inner {
pub mod inner2 {
pub fn hello() { println!("hello, modular world"); }
}
pub fn hello() { inner2::hello(); }
}
pub fn main() { inner::hello(); inner::inner2::hello(); }