Skip to content

Commit 09a49e6

Browse files
committed
moved renamed docs formmated | inner-module.rs
1 parent 2a1d23c commit 09a49e6

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

tests/ui/inner-module.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//! Basic test for nested module functionality and path resolution
2+
3+
//@ run-pass
4+
5+
mod inner {
6+
pub mod inner2 {
7+
pub fn hello() {
8+
println!("hello, modular world");
9+
}
10+
}
11+
pub fn hello() {
12+
inner2::hello();
13+
}
14+
}
15+
16+
pub fn main() {
17+
inner::hello();
18+
inner::inner2::hello();
19+
}

0 commit comments

Comments
 (0)