mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-09 00:17:44 +00:00
11 lines
286 B
Rust
11 lines
286 B
Rust
fn foo(x: isize) {
|
|
fn mth() {
|
|
fn bar() { log(debug, x); }
|
|
//~^ ERROR can't capture dynamic environment in a fn item
|
|
//~| ERROR cannot find value `debug` in this scope
|
|
//~| ERROR cannot find function `log` in this scope
|
|
}
|
|
}
|
|
|
|
fn main() { foo(2); }
|