]> git.lizzy.rs Git - rust.git/blob - src/test/ui/resolve/issue-31845.rs
Rollup merge of #101292 - rust-lang:notriddle/rustdoc-table-first-child, r=GuillaumeGomez
[rust.git] / src / test / 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() {}