rust/src/test/compile-fail/bad-env-capture.rs

7 lines
138 B
Rust

// error-pattern: attempted dynamic environment-capture
fn foo() {
let x: int;
fn bar() { log(debug, x); }
}
fn main() { foo(); }