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-19 21:53:39 -06:00
// error-pattern: can't capture dynamic environment in a fn item
2010-06-23 23:03:09 -05:00
fn foo() {
let x: isize;
fn bar() { log(debug, x); }
2010-06-23 23:03:09 -05:00
}
fn main() { foo(); }