mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
9 lines
257 B
Rust
9 lines
257 B
Rust
fn foo() {
|
|
let x: isize;
|
|
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(); }
|