提交 4499ebe8 编写于 作者: M Michael Sullivan

Add a test that tests typestate checking inside of fn exprs.

上级 b732ec6f
// error-pattern:Unsatisfied precondition
// xfail-stage0
fn main() {
// Typestate should work even in a lambda. we should reject this program.
auto f = fn () -> int {
let int i;
ret i;
};
log_err f();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册