diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2025-07-08 15:10:51 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 15:10:51 +0000 |
| commit | a310bdd0d87163341f9344eff80860cc8519f943 (patch) | |
| tree | 05a5849ce18ed88207f14d23da57a06dfc1e8126 /tests/ui/modules/nested-modules-basic.rs | |
| parent | 061a941adc570ed717dfa2f3508a9038b8300eca (diff) | |
| parent | bdead41b65ed10d6c947b20ddb724f1ae59e2b48 (diff) | |
| download | rust-a310bdd0d87163341f9344eff80860cc8519f943.tar.gz rust-a310bdd0d87163341f9344eff80860cc8519f943.zip | |
Merge pull request #1853 from Kobzol/pull-fixed
Perform the first rustc pull.. for the second time
Diffstat (limited to 'tests/ui/modules/nested-modules-basic.rs')
| -rw-r--r-- | tests/ui/modules/nested-modules-basic.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/modules/nested-modules-basic.rs b/tests/ui/modules/nested-modules-basic.rs new file mode 100644 index 00000000000..12eccec2808 --- /dev/null +++ b/tests/ui/modules/nested-modules-basic.rs @@ -0,0 +1,19 @@ +//! Basic test for nested module functionality and path resolution + +//@ run-pass + +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(); +} |
