rust/src/test/ui/bad/bad-env-capture.rs
2018-12-25 21:08:33 -07:00

7 lines
149 B
Rust

// error-pattern: can't capture dynamic environment in a fn item
fn foo() {
let x: isize;
fn bar() { log(debug, x); }
}
fn main() { foo(); }