]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-31845.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-31845.rs
1 // Checks lexical scopes cannot see through normal module boundaries
2
3 fn f() {
4     fn g() {}
5     mod foo {
6         fn h() {
7            g(); //~ ERROR cannot find function `g` in this scope
8         }
9     }
10 }
11
12 fn main() {}