rust/tests/ui/resolve/bad-env-capture.rs

7 lines
150 B
Rust
Raw Normal View History

//@ error-pattern: can't capture dynamic environment in a fn item
2010-06-24 04:03:09 +00:00
fn foo() {
let x: isize;
fn bar() { log(debug, x); }
2010-06-24 04:03:09 +00:00
}
fn main() { foo(); }