9 lines
146 B
Rust
9 lines
146 B
Rust
// -*- rust -*-
|
|
|
|
// error-pattern: attempted dynamic environment-capture
|
|
|
|
fn main() {
|
|
let bar: int = 5;
|
|
fn foo() -> int { return bar; }
|
|
}
|