rust/src/test/run-pass/inner-module.rs

13 lines
202 B
Rust

// -*- rust -*-
mod inner {
mod inner2 {
fn hello() { #debug("hello, modular world"); }
}
fn hello() { inner2::hello(); }
}
fn main() { inner::hello(); inner::inner2::hello(); }