6 lines
129 B
Rust
6 lines
129 B
Rust
// error-pattern: attempted dynamic environment-capture
|
|
fn foo(x: int) {
|
|
fn bar() { log(debug, x); }
|
|
}
|
|
fn main() { foo(2); }
|