rust/src/test/compile-fail/bad-env-capture3.rs
2012-01-13 11:52:13 +01:00

9 lines
155 B
Rust

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