summary refs log tree commit diff
path: root/src/test/compile-fail/bad-env-capture3.rs
blob: 67a6221df017cb08a9b8e801967e7971a49a2e12 (plain)
1
2
3
4
5
6
7
8
// error-pattern: attempted dynamic environment-capture
fn foo(x: int) {
    fn mth() {
        fn bar() { log(debug, x); }
    }
}

fn main() { foo(2); }