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

12 lines
142 B
Rust
Raw Normal View History

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