Another test for typestate and expr_fn

This commit is contained in:
Tim Chevalier 2011-06-28 13:14:52 -07:00
parent 28459ca0eb
commit d832f7abec

View File

@ -0,0 +1,10 @@
// error-pattern:Unsatisfied precondition
// xfail-stage0
fn main() {
auto j = (fn () -> int {
let int i;
ret i;
})();
log_err j;
}