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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
149 B
Rust
Raw Normal View History

2017-12-20 03:53:39 +00:00
// 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(); }