Skip to content

Commit 48b46c6

Browse files
committed
---
yaml --- r: 2035 b: refs/heads/master c: a4f8de3 h: refs/heads/master i: 2033: d2d8024 2031: e50468c v: v3
1 parent 1df5031 commit 48b46c6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: d2d42fd4c746b10cffa4116ade9629340fdc4a5c
2+
refs/heads/master: a4f8de382a042b664223389db8ffe2b5718b91e8
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)