about summary refs log tree commit diff
path: root/tests/ui/resolve/bad-env-capture2.rs
blob: 8298e6fcd243b07dc55b47830aa6d46a756caad6 (plain)
1
2
3
4
5
6
7
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); }