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

15 lines
252 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
// -*- rust -*-
2010-06-23 21:03:09 -07:00
mod inner {
#[legacy_exports];
mod inner2 {
#[legacy_exports];
2012-08-22 17:24:52 -07:00
fn hello() { debug!("hello, modular world"); }
2010-06-23 21:03:09 -07:00
}
fn hello() { inner2::hello(); }
2010-06-23 21:03:09 -07:00
}
fn main() { inner::hello(); inner::inner2::hello(); }