rust/src/test/run-pass/mod-inside-fn.rs

11 lines
115 B
Rust

fn f() -> int {
mod m {
fn g() -> int { 720 }
}
m::g()
}
fn main() {
assert f() == 720;
}