Skip to content

Commit a4f8de3

Browse files
committed
Add an XFAILed test for blocks that result in functions
1 parent d2d42fd commit a4f8de3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/run-pass/expr-block-fn.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// xfail-boot
2+
// xfail-stage0
3+
4+
fn test_fn() {
5+
type t = fn() -> int;
6+
fn ten() -> int {
7+
ret 10;
8+
}
9+
let t res = { ten };
10+
check (res() == 10);
11+
}
12+
13+
fn main() {
14+
test_fn();
15+
}

0 commit comments

Comments
 (0)