about summary refs log tree commit diff
path: root/src/test/run-pass/lambda-infer-unresolved.rs
blob: 7bfba99baac2c6e4685044938bf8340eec788572 (plain)
1
2
3
4
5
6
7
// This should typecheck even though the type of e is not fully
// resolved when we finish typechecking the lambda.
fn main() {
    let e = @{mutable refs: [], n: 0};
    let f = lambda () { log_err e.n; };
    e.refs += [1];
}