mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
13 lines
221 B
Rust
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() {}
|