]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inner-module.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[rust.git] / src / test / ui / inner-module.rs
1 // run-pass
2
3 mod inner {
4     pub mod inner2 {
5         pub fn hello() { println!("hello, modular world"); }
6     }
7     pub fn hello() { inner2::hello(); }
8 }
9
10 pub fn main() { inner::hello(); inner::inner2::hello(); }