]> git.lizzy.rs Git - rust.git/blob - tests/ui/inner-module.rs
Rollup merge of #106734 - albertlarsan68:deny-src-tests-in-tidy, r=Nilstrieb
[rust.git] / tests / 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(); }