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