Files
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.

9 lines
257 B
Rust
Raw Normal View History

2010-06-23 21:03:09 -07:00
fn foo() {
let x: isize;
fn bar() { log(debug, x); }
//~^ ERROR can't capture dynamic environment in a fn item
//~| ERROR cannot find value `debug` in this scope
//~| ERROR cannot find function `log` in this scope
2010-06-23 21:03:09 -07:00
}
fn main() { foo(); }