about summary refs log tree commit diff
path: root/tests/ui/resolve/bad-env-capture.rs
blob: a0efe88e2a9ec4be428069d81da8be92f10fa741 (plain)
1
2
3
4
5
6
7
8
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
}
fn main() { foo(); }