/src/test/compile-fail/bad-env-capture2.rs
http://github.com/jruderman/rust · Rust · 5 lines · 4 code · 0 blank · 1 comment · 0 complexity · 67c1334808bb35f6bb2129872cc253d5 MD5 · raw file
- // error-pattern: attempted dynamic environment-capture
- fn foo(x: int) {
- fn bar() { log(debug, x); }
- }
- fn main() { foo(2); }