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