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