1 2 3 4 5 6 7 8
// -*- rust -*- // error-pattern: attempted dynamic environment-capture fn main() { let bar: int = 5; fn foo() -> int { ret bar; } }