summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/bad-env-capture3.rs
blob: 62f12fd1a6d67235543795f3a3a2f13bae86d563 (plain)
1
2
3
4
5
6
7
8
// error-pattern: can't capture dynamic environment in a fn item
fn foo(x: isize) {
    fn mth() {
        fn bar() { log(debug, x); }
    }
}

fn main() { foo(2); }