rust/tests/ui/resolve/issue-31845.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
221 B
Rust
Raw Normal View History

2018-08-19 08:30:23 -05:00
// 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() {}