rust/src/test/ui/issues/issue-31845.rs
2018-12-25 21:08:33 -07:00

13 lines
221 B
Rust

// Checks lexical scopes cannot see through normal module boundaries
fn f() {
fn g() {}
mod foo {
fn h() {
g(); //~ ERROR cannot find function `g` in this scope
}
}
}
fn main() {}