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

9 lines
156 B
Rust

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