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

14 lines
252 B
Rust

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