10 lines
132 B
Rust
10 lines
132 B
Rust
|
// error-pattern: attempted dynamic environment-capture
|
||
|
fn foo() {
|
||
|
let int x;
|
||
|
fn bar() {
|
||
|
log x;
|
||
|
}
|
||
|
}
|
||
|
fn main() {
|
||
|
foo();
|
||
|
}
|