// -*- rust -*-
// error-pattern: attempted dynamic environment-capture
fn main() {
fn foo() -> int { ret bar; }
let bar: int = 5;
}