Files
rust/tests/ui/resolve/bad-env-capture2.rs

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

8 lines
248 B
Rust
Raw Normal View History

fn foo(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
}
fn main() { foo(2); }