Skip to content

Commit d832f7a

Browse files
committed
Another test for typestate and expr_fn
1 parent 28459ca commit d832f7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// error-pattern:Unsatisfied precondition
2+
// xfail-stage0
3+
4+
fn main() {
5+
auto j = (fn () -> int {
6+
let int i;
7+
ret i;
8+
})();
9+
log_err j;
10+
}

0 commit comments

Comments
 (0)